Using gdiplus to skew, rotate and resize a matrix (image)
-
Hi, I have a 2D matrix (basically an array of data) with values between 0-255 and 'm trying to do some skewing, rotation and resizing of it using gdiplus. I can use that data to display an image using gdiplus by creating a 8bit bitmap with the array as pixel data and attaching it to a gdiplus bitmap object and using that with a gdiplus graphics object. I am not sure how I can perform skew in both directions, then rotate and then resize it as per my application requirements. At the end I would like to save the bitmap that has all those transformations applied as a tiff file (or for now as bitmap). any help is appreciated thanks
PKNT
-
Hi, I have a 2D matrix (basically an array of data) with values between 0-255 and 'm trying to do some skewing, rotation and resizing of it using gdiplus. I can use that data to display an image using gdiplus by creating a 8bit bitmap with the array as pixel data and attaching it to a gdiplus bitmap object and using that with a gdiplus graphics object. I am not sure how I can perform skew in both directions, then rotate and then resize it as per my application requirements. At the end I would like to save the bitmap that has all those transformations applied as a tiff file (or for now as bitmap). any help is appreciated thanks
PKNT