471,347 Members | 1,710 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,347 software developers and data experts.

Graphic DrawImage question...

Hi guys,

Am I right in thinking that the DrawImage method will only render in
8bits/pixel ?

I have the following code (assume my16bitImage is a 16bit bitmap in memory)

myMatrix = new Matrix ();
myMatrix.RotateAt (angle, centrePoint, MatrixOrder.Append);

Bitmap testBitmap = new Bitmap (1000,1000, PixelFormat.Format48bppRgb);

Graphics testGraphic = Graphics.FromImage (testBitmap);
testGraphic.Transform = myMatrix;
testGraphic.DrawImage(my16bitImage, 0.0f, 0.0f);

myPictureBox.image = testBitmap;

The result is a very messy image ;(

Anyone know the answer to this and a way I can get around it ? The reason I
want to use DrawImage is so I can apply the rotation matrix.

Thanks in advance


Nov 26 '05 #1
0 2316

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Frecklefoot | last post: by
1 post views Thread by ray well | last post: by
6 posts views Thread by randy1200 | last post: by
reply views Thread by Lev Elbert | last post: by
6 posts views Thread by Lev Elbert | last post: by
8 posts views Thread by Phil | last post: by
8 posts views Thread by Brian Ward | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.