How to rotate a bitmap?



The Help file says about TBitmap:

Description
A bitmap is a powerful graphics object used to create, manipulate (scale,
scroll, rotate, and paint), and store images in memory and as files on a
disk.

How do I rotate a bitmap (say 13 degrees)?

Brent


.



Relevant Pages

  • Re: WM5 - Bitmap Rotation
    ... and use DirectX 3D to rotate and scale it. ... you're going to rotate the bitmap by 90, 180 or 270 degrees, because ... pixels from the original bitmap point to the same pixel on the ...
    (microsoft.public.pocketpc.developer)
  • Re: STGAPIBuffer rotated to landscape? Possible? How?
    ... Take the bitmap that needs to be rotated and copy it to a DIBSection then use the pointer to the raw bytes create a WORD array and store all pixels as 16bit-565, rotating the picture -90 degrees as you go. ... What I'm trying to do is tweak STGapiBuffer to rotate the bitmap for me as STGAPI is converting it to "native" format. ... In other words what needs to be changed in CreateNativeBitmap and CreateNativeBitmapFromBGRBits in order to rotate my HBITMAP 90deg counterclockwise? ...
    (microsoft.public.pocketpc.developer)
  • Re: This is how I rotate an bitmap
    ... One of the cardinal rules is that you never rotate one way and then rotate back the other. ... Matrix transformations add compound errors to the values so that over time, ... Nothing of the original image is lost, it is getting smaller or the new bitmap is a little bigger then need be. ... When you've made your rotation there is no easy way to tell what is your original bitmap and what is white space. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Replacing the system mouse cursor
    ... PlgBlt is a fast way to rotate a bitmap. ... mouse_eventto inject mouse movements and clicks into Windows. ...
    (microsoft.public.vc.mfc)
  • Re: Text in Gdiplus
    ... from the bitmap do some form of rotate on it and then drawString. ... to rotate the text to the correct orientation and position. ... have no idea what the transform and matrix parameters were doing but ...
    (comp.lang.smalltalk.dolphin)