Discussion:
Rotate bitmap
(too old to reply)
John Vogrin
2004-07-01 20:04:52 UTC
Permalink
Hi all:

I have a strange question, and I have no idea if it is even feesible.
I have created my own VCR control. The upBitmap property uses one of
the images in the resource.dll file for each of my buttons.
Everything was fine up till today. My boss would like the datacontrol
to go vertically instead of horizontally. I have the buttons in a
container, and I can resize the container to go vertically but the
buttons are still horizontal. So, my question is can I do any of the
following:

1. Rotate the image on the button 90 degrees?
2. Rotate the entire container 90 degrees?
3. Rotate each of the buttons 90 degrees?

I know that I can rotate the images in a graphics program. I would
prefer to keep the images in the dll file if at all possible.

John
Scott Guerrieri
2004-07-12 14:17:18 UTC
Permalink
Post by John Vogrin
I have a strange question, and I have no idea if it is even feesible.
I have created my own VCR control. The upBitmap property uses one of
the images in the resource.dll file for each of my buttons.
Everything was fine up till today. My boss would like the datacontrol
to go vertically instead of horizontally. I have the buttons in a
container, and I can resize the container to go vertically but the
buttons are still horizontal. So, my question is can I do any of the
1. Rotate the image on the button 90 degrees?
2. Rotate the entire container 90 degrees?
3. Rotate each of the buttons 90 degrees?
I know that I can rotate the images in a graphics program. I would
prefer to keep the images in the dll file if at all possible.
John
Have you tried to rotate the image before assigning it to the button?
It is possible in .NET to rotate a bitmap and store it to a temporary,
or scratch, image and then assign the temporary to the button as its
image. You might be able to accomplish the same thing. I don't think
that you will be able to rotate the whole container or the buttons
individually, but the above should be quite possible.

Loading...