12-22-2005 02:40 PM
12-23-2005 03:25 AM
Hi Chris,
in this thread you can find two sample projects for rotating bitmap images by 90°. Both of them are aimed to plot a text in vertical direction, but since they pass through bitmaps they can be used also for image treatment.
This is also the main disadvantage in this projects: they are customized to BMP format images. Bitmap images are basically a matrix or row by col pixels associated to their pixel depth, so they can be stored in an array and rotation is reduced to an appropriate rearrangement of elements in the array. Since you may need to use other types of images, to use those functions you should first load the image in a picture control and then get the bitmap of the control and rotate it, which may be an inefficient way of doing. Nevertheless, it may be useful to take a look to them.
Hope this helps
Roberto