Re: Text in Gdiplus



Chris,

Thanks for the reply.

I vaguely remember having done this. Once you acquire a GdiplusGraphics
from the bitmap do some form of rotate on it and then drawString. I was
using a dedicated transparent graphic solely for my text so it might
affect other detail on said graphic and you need to combine two.

I was drawing text (in 3 different orientations) and images to a
printer canvas. I couldn't really combine bitmaps as the different
resolutions (printer vs screen) were causing a problem and I couldn't
see how to specify a resolution to use in a GdiplusGraphic object?

I got there in the end by using the #transform operation with a matrix
to rotate the text to the correct orientation and position. I still
have no idea what the transform and matrix parameters were doing but
with trial and error (and a lot of paper) I got the page drawn
correctly.
--
Ian

The From address is valid
.



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: Basic question
    ... The matrix transform relates to a Graphics object. ... To rotate the image ... Bitmap NorthBM = null; ... // load bitmap from file ...
    (microsoft.public.dotnet.framework.drawing)