Re: [RESOLVED] How to RESIZE a Picturebox with only TEXT in it?
Quote:
But (there's ALWAYS a BUT).
I see that the resultant cropped picturebox with the rotated text in it has an opaque background.
OK, here is what I am doing.....
I am trying to create a routine that will take a "Report" (which can consist of text, graphics, charts, pictures, ROTATED text, etc.), and export that to a RTF.
I have explored the wonderful world of RTF (the latest specifications),
and I can do it.
In fact I am doing it... INCLUDING the ROTATED text.
To create Rotated text, I MUST get it into an image/picture which essentially is a bitmap/WMF. I then extract the hexadecimal representation of that image, surround that with the necessary RTF control "stuff", and write it out to the RTF file.
This works quite good.
But the bitmap/wmf has an opaque background, therefore any rotated text which might come close or overlap anything else on the page obscures it, because the background is not transparent.
So.... how do I get my resultant cropped picturebox to have a transparent background ?
I have searched and found several threads which approach this, but they all work with a "picture" within a Picturebox. Remember, I don't have a picture in my Picturebox; I merely have some graphics.
So... should I try to use a different object ? (I have no idea what I could use... an Image won't work, because it doesn't have an hDC, so BitBlt won't work for it).
Any suggestions anyone can make would sure be appreciated.
Or even a totally different approach ?
(Maybe I should create a different thread ?)
they don't have hdcs exposed, but it's easy to give them one. Use the getHDC api. Don't forget to use ReleaseHDC when done.