Getting byte data from an Image.

...okay.. thats it.. ;) I dont think this "discussion" will lead anywhere, since you dont read AND understand..

first: read the link I posted (this one) .. you only need to read the first paragraph:

"This page details the licenses under which Mozilla source code can be obtained. At the moment, parts of the source are available under either the Netscape Public License (NPL) or the Mozilla Public License (MPL), often in combination with either the GNU General Public License (GPL) or the GNU Lesser General Public License (LGPL), or both. mozilla.org is working towards having all the code in the tree licensed under a MPL/LGPL/GPL tri-license; for more information, see the Relicensing FAQ. Any code checked into our CVS tree needs to comply with the licensing policy."

see? wasnt that complicated, was it?

second: read the other links I posted.. youll notice that the author does use Get/SetPixel BUT also uses LockBits and (fast) unsafe code to access Pixels..

third: you havent proven anything with your snippet of code.. see attachment and explain what good a bitmap is if you cant manipulate it (draw on it).. furthermore you can create a (for example) 1bpp-Bitmap but you cant save it as 1bpp.. too bad... [Broken External Image]:http://computerhelp.forum/images/smilies/wink.gif

...and finally: lets stop this discussion - as I said it doesnt lead anywhere good...

Cheers

Andreas
 

Attachments

1. Ok, mozilla is GNU licence based, It is also not resounds typical GNU ideas like Vote for Microsoft 100% free!!! etc... And there is is no fee for updates and technical support (maybe because of donations) and this is rarity.
I think it is a big shame for any software to use GNU GPL.

2. ...use Get/SetPixel BUT also uses LockBits and (fast) unsafe code to access Pixels.. Yes, Lockbits - there shall be the key, now I am using another, fast method, but this looks better (I will do some speed test and I will tell you.). Using Lockbits looks easy, I will try it tomorrow mornig (I am in the same time zone like you) so I will tell you.

3. third: you havent proven anything with your snippet of code.. see attachment and explain what good a bitmap is if you cant manipulate it (draw on it).. furthermore you can create a (for example) 1bpp-Bitmap but you cant save it as 1bpp.. too bad...

I will send you tutorial, how to manipulate. How to save... hmmm. I am solving this now. ( I asked PlausiblyPamp how to with PNGs on page 1) I have idea how, I am sure that it is posibble, evently to save in CMYK mode (of course only formats wich support CMYK like jpeg). When I will know how-to I will post it.

...and finally: lets stop this discussion - as I said it doesnt lead anywhere good... Hehehe :) Really? Wait for tutorial and you will see if no. Or better idea: Download it from this forum - search in graphics - Pascals Triangle.

Vielen dank fur dein zeit.
Ich habe lernt deutsch funf jahre, aber jetzt Ich weiss nur einige worter. ;)

predseda
 
Hamburger1984,

By the way...What did you mean with this?
...will lead anywhere, since you dont read AND understand..
Ok man, I have no experience with C#, but I am VB.Net developer (or lowly I want to be), so dont think I am fool...

And next, your attachment is in C#, so bye-bye :) , I can help you only with VB.Net. ( I think you know VB.Net syntax or not? )
Tutorial Pascals Triangle is written in VB.Net too.

predseda
 
Use the LockBits method. You may think you have an Image object, but really you have a Bitmap object. You never have an Image in .net - even if you use Image.FromFile, you end up with a Bitmap. So just cast it.
 
Back
Top