Click here to Skip to main content
15,891,766 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi everyone
i want Get a bitmap image from a Control view and rezie it to 100 and 100 with uniform Stretch
i found
this link
but how can i resize it to 100,100 with uniform Stretch
thank you
Posted

The TransformedBitmap class allows you to resize an image.
 
Share this answer
 
GetThumbnailImage method of Image class can be used to resize the image

C#
public Image GetThumbnailImage(
    int thumbWidth,
    int thumbHeight,
    Image..::..GetThumbnailImageAbort callback,
    IntPtr callbackData
)


An example is given at
http://msdn.microsoft.com/en-us/library/system.drawing.image.getthumbnailimage.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900