>>I needed to have the file on disk, I don't think the image control supports that.
>>
>>But thanks for your input,
>>
>>Bob
>>
>>>>Hello all
>>>>
>>>>I am looking for a code snippet using GDI+ that will rotate a BMP file 180 degrees
>>>>
>>>>Thanks in advance
>>>>
>>>>Bob
>>>
>>>Does not the native VFP image class do that for you with property RotateFlip = 2 - Rotate180FlipNone?
>
>It does support a file on disk.
>
>You just set the Picture property to the FileOnDisk and set the RotateFlip Property to what you want. Internally the control uses GDI+ to rotate/flip the image anyway.
I am pretty sure that Robert wants to end up with a bmp file where the picture is rotated. AFAIK you can't use an image control to accomplish that.