General information
Category:
Pictures and Image processing
Got it.
>>Malcom
>>
>>Although I was trying to work out a similar example, I'm not sure you can create a 1 pixel wide bitmap and make it a gradient one, since a pixel can mostly only hold one color. I was able to workin out a sample that does that, but it uses GDI+ to draw the picture on the form), I was also working on rotating the image and drag and drop to move the picture around, and actually if I try hard enough and change the zorder of the shape on the form, and stick it slightly over the command button, the picture actually appears behind the button, without worrying about XP themes or not. Here is the code (sorry it's a little long- but it might help understanding GDI+). The sample is only code and not picture. Its up to you to create a gradient bitmap (the one I used was 600x600)
>
>
>Mike,
>
>He meant one pixel wide or tall, for example "1 pixel wide x the form height" or "the form width x 1 pixel tall", so each pixel from this "line" would have the gradient color
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only