Re: [Flashcoders] binary-coded image
yes, thanks everyone it made sens last night when I got to bed for a while...:) yes it's just an image where color are black or white1/0...binary-coded...wow! :) Only for processing, not less space... thanks ;) L Daniel Boey a écrit : Hi, BitmapData class has a threshold method that does what Ashim mentioned which if you were to go to the extreme 0 and 255 of a pixel value you'd ultimately obtain a black and white image anyway. Main use of thresholding however is for image processing purposes which I will not go in depth here and not really to help save size because you won't be able to get your image back unless you save the pixel values of the original. I'm guessing you might mean using the ByteArray class which can be used to store binary data and has a built-in compress method to boot. HTH Thanks & Best regards, Daniel Boey On Thu, Dec 4, 2008 at 8:00 AM, Ashim D'Silva <[EMAIL PROTECTED]>wrote: If you're just after the look the TweenFilterLite library has a great inbuilt filter. But if you actually want to convert it, I imagine you'd just run through every pixel and if the value (calculated however you'd like) is greater than your decided threshold, make it white, else black. I'm not sure what it will save you within flash however. Ashim 2008/12/4 Ian Thomas <[EMAIL PROTECTED]> Really? Wow. Must be new additions - excellent. Ian On 12/3/08, David Hershberger <[EMAIL PROTECTED]> wrote: Also Flex supports PNG and JPEG: mx.graphics.codec.PNGEncoder and mx.graphics.code.JPEGEncoder. Dave On 12/3/08, Ian Thomas <[EMAIL PROTECTED]> wrote: > > If you mean 'how do I encode a bitmap into an image format' e.g. PNG > or JPEG, check out this library: > http://code.google.com/p/as3corelib/wiki/Main > > which has code for both PNG and JPEG. > > HTH, > >Ian > > > On 12/3/08, laurent <[EMAIL PROTECTED]> wrote: > > Hi, > > > > How could I convert a bitmap to a binary-coded bitmap ... or anything > else > > that will represent a binary-coded image ? > > > > Thanks > > L > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- The Random Lines My online portfolio www.therandomlines.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] binary-coded image
Hi, BitmapData class has a threshold method that does what Ashim mentioned which if you were to go to the extreme 0 and 255 of a pixel value you'd ultimately obtain a black and white image anyway. Main use of thresholding however is for image processing purposes which I will not go in depth here and not really to help save size because you won't be able to get your image back unless you save the pixel values of the original. I'm guessing you might mean using the ByteArray class which can be used to store binary data and has a built-in compress method to boot. HTH Thanks & Best regards, Daniel Boey On Thu, Dec 4, 2008 at 8:00 AM, Ashim D'Silva <[EMAIL PROTECTED]>wrote: > If you're just after the look the TweenFilterLite library has a great > inbuilt filter. But if you actually want to convert it, I imagine you'd > just > run through every pixel and if the value (calculated however you'd like) is > greater than your decided threshold, make it white, else black. I'm not > sure > what it will save you within flash however. > Ashim > > 2008/12/4 Ian Thomas <[EMAIL PROTECTED]> > > > Really? Wow. Must be new additions - excellent. > > > > Ian > > > > On 12/3/08, David Hershberger <[EMAIL PROTECTED]> wrote: > > > Also Flex supports PNG and JPEG: > > > mx.graphics.codec.PNGEncoder and mx.graphics.code.JPEGEncoder. > > > > > > Dave > > > > > > > > > On 12/3/08, Ian Thomas <[EMAIL PROTECTED]> wrote: > > > > > > > > If you mean 'how do I encode a bitmap into an image format' e.g. PNG > > > > or JPEG, check out this library: > > > > http://code.google.com/p/as3corelib/wiki/Main > > > > > > > > which has code for both PNG and JPEG. > > > > > > > > HTH, > > > > > > > >Ian > > > > > > > > > > > > On 12/3/08, laurent <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > > > > > > How could I convert a bitmap to a binary-coded bitmap ... or > > anything > > > > else > > > > > that will represent a binary-coded image ? > > > > > > > > > > Thanks > > > > > L > > > > > ___ > > > > > Flashcoders mailing list > > > > > Flashcoders@chattyfig.figleaf.com > > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > > ___ > > > > Flashcoders mailing list > > > > Flashcoders@chattyfig.figleaf.com > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > ___ > > > Flashcoders mailing list > > > Flashcoders@chattyfig.figleaf.com > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > -- > The Random Lines > My online portfolio > www.therandomlines.com > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] binary-coded image
If you're just after the look the TweenFilterLite library has a great inbuilt filter. But if you actually want to convert it, I imagine you'd just run through every pixel and if the value (calculated however you'd like) is greater than your decided threshold, make it white, else black. I'm not sure what it will save you within flash however. Ashim 2008/12/4 Ian Thomas <[EMAIL PROTECTED]> > Really? Wow. Must be new additions - excellent. > > Ian > > On 12/3/08, David Hershberger <[EMAIL PROTECTED]> wrote: > > Also Flex supports PNG and JPEG: > > mx.graphics.codec.PNGEncoder and mx.graphics.code.JPEGEncoder. > > > > Dave > > > > > > On 12/3/08, Ian Thomas <[EMAIL PROTECTED]> wrote: > > > > > > If you mean 'how do I encode a bitmap into an image format' e.g. PNG > > > or JPEG, check out this library: > > > http://code.google.com/p/as3corelib/wiki/Main > > > > > > which has code for both PNG and JPEG. > > > > > > HTH, > > > > > >Ian > > > > > > > > > On 12/3/08, laurent <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > > > How could I convert a bitmap to a binary-coded bitmap ... or > anything > > > else > > > > that will represent a binary-coded image ? > > > > > > > > Thanks > > > > L > > > > ___ > > > > Flashcoders mailing list > > > > Flashcoders@chattyfig.figleaf.com > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > ___ > > > Flashcoders mailing list > > > Flashcoders@chattyfig.figleaf.com > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- The Random Lines My online portfolio www.therandomlines.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] binary-coded image
Really? Wow. Must be new additions - excellent. Ian On 12/3/08, David Hershberger <[EMAIL PROTECTED]> wrote: > Also Flex supports PNG and JPEG: > mx.graphics.codec.PNGEncoder and mx.graphics.code.JPEGEncoder. > > Dave > > > On 12/3/08, Ian Thomas <[EMAIL PROTECTED]> wrote: > > > > If you mean 'how do I encode a bitmap into an image format' e.g. PNG > > or JPEG, check out this library: > > http://code.google.com/p/as3corelib/wiki/Main > > > > which has code for both PNG and JPEG. > > > > HTH, > > > >Ian > > > > > > On 12/3/08, laurent <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > How could I convert a bitmap to a binary-coded bitmap ... or anything > > else > > > that will represent a binary-coded image ? > > > > > > Thanks > > > L > > > ___ > > > Flashcoders mailing list > > > Flashcoders@chattyfig.figleaf.com > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] binary-coded image
No it's more like to obtein a treshold image...I just read that in a publication, in a book... "The reason why the input image is converted to a binary-coded image is because binary-coded image requires less data size than color or B&W image." get not more clue with google :) L David Hershberger a écrit : Also Flex supports PNG and JPEG: mx.graphics.codec.PNGEncoder and mx.graphics.code.JPEGEncoder. Dave On 12/3/08, Ian Thomas <[EMAIL PROTECTED]> wrote: If you mean 'how do I encode a bitmap into an image format' e.g. PNG or JPEG, check out this library: http://code.google.com/p/as3corelib/wiki/Main which has code for both PNG and JPEG. HTH, Ian On 12/3/08, laurent <[EMAIL PROTECTED]> wrote: Hi, How could I convert a bitmap to a binary-coded bitmap ... or anything else that will represent a binary-coded image ? Thanks L ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] binary-coded image
Also Flex supports PNG and JPEG: mx.graphics.codec.PNGEncoder and mx.graphics.code.JPEGEncoder. Dave On 12/3/08, Ian Thomas <[EMAIL PROTECTED]> wrote: > > If you mean 'how do I encode a bitmap into an image format' e.g. PNG > or JPEG, check out this library: > http://code.google.com/p/as3corelib/wiki/Main > > which has code for both PNG and JPEG. > > HTH, > >Ian > > > On 12/3/08, laurent <[EMAIL PROTECTED]> wrote: > > Hi, > > > > How could I convert a bitmap to a binary-coded bitmap ... or anything > else > > that will represent a binary-coded image ? > > > > Thanks > > L > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] binary-coded image
If you mean 'how do I encode a bitmap into an image format' e.g. PNG or JPEG, check out this library: http://code.google.com/p/as3corelib/wiki/Main which has code for both PNG and JPEG. HTH, Ian On 12/3/08, laurent <[EMAIL PROTECTED]> wrote: > Hi, > > How could I convert a bitmap to a binary-coded bitmap ... or anything else > that will represent a binary-coded image ? > > Thanks > L > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] binary-coded image
Hi, How could I convert a bitmap to a binary-coded bitmap ... or anything else that will represent a binary-coded image ? Thanks L ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders