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