04-08-2010 05:40 AM
Hi,i want to draw a image using paint method,i prefered to take the image as Bitmap
Is there any ways to take the image as EncodedImage ,so that i can resize it.
similarly how to convert the bitmap to encodedimage.
04-08-2010 06:54 AM
You have to re-encode it since EncodedImage only takes formats like PNG, JPEG, etc. for input.
Take a look at some of the specific EncodedImage classes because some have a function that can encode raw RGB to an EncodedImage for you (such as JPEGEncodedImage).
Your other option is to make your own encoder or find one (one popular one, if you search the forums for it, is a PNG encoder which works very well).