You can use Bitmap. GetARGB(int argbData, int offset, int scanLength, int x, int y, int width, int height) after loading your image Bitmap imgAll = Bitmap. GetBitmapResource("fontDigits_200x20.
Png"); and off course you can create new Bitmap from this ARGB data.
Yes, the bitmap gets created, however the transparency is not preserved -- it paints the transparent area with white pixels. The reason I'm using a . Png image rather than a bitmap, is to preserve the transparency.
Thank you, but unfortunately I can't use it. – Levon Sep 24 '10 at 18:59.
You can do it directly with the Bitmap. ScaleInto function: Bitmap src; Bitmap dst = new Bitmap(64,32); int filterType = Bitmap. FILTER_BILINEAR; src.
ScaleInto(srcLeft, srcTop, srcWidth, srcHeight, dst, dstLeft, dstTop, dstWidth, dstHeight, filterType).
Just a warning that scaleInto was introduced in 5.0, which may be fine depending on the app, but something to keep in mind – Anthony Rizk Sep 20 '10 at 2:10 I need this to work on 4.3 devices as well, but thank you for the tip, it will be useful in the future. – Levon Sep 23 '10 at 17:00 Thanks for the heads up about 5.0. I have ripped it out of my code and implemented a nice fixed-point bitmap scaler instead.
– ddopson Sep 25 '10 at 1:44.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.