DrawImageUnscaled......why scaled?
-
I draw an image in the form_Paint event handler: e.Graphics.DrawImageUnscaled(bmp,0,0/*panel1.Bounds*/); But the image IS scaled! The size of bmp is 2048*1900, but the whole image was drawn in a small area of the form, the width was 800 more or less. Why scaled? How can I make it unscaled?
-
I draw an image in the form_Paint event handler: e.Graphics.DrawImageUnscaled(bmp,0,0/*panel1.Bounds*/); But the image IS scaled! The size of bmp is 2048*1900, but the whole image was drawn in a small area of the form, the width was 800 more or less. Why scaled? How can I make it unscaled?
That's really weird. Is there any sort of scaling transform happening on the graphics object ? Christian Graus - Microsoft MVP - C++
-
I draw an image in the form_Paint event handler: e.Graphics.DrawImageUnscaled(bmp,0,0/*panel1.Bounds*/); But the image IS scaled! The size of bmp is 2048*1900, but the whole image was drawn in a small area of the form, the width was 800 more or less. Why scaled? How can I make it unscaled?
The DrawImageUnscaled method draws the image at it's original physical size. The size is about 11" wide, so it's resized to show up as 11" wide on the screen. If you want to draw the image without resizing, use a different method. --- b { font-weight: normal; }