Home All Groups Group Topic Archive Search About
Author
25 Mar 2006 5:57 AM
Graphics
This is really a two part question.  Is there a way to create a
transparent overlay graphics form that will sit over other programs?
And if so is there a way to rotate the graphics the way photoshop
rotates an image using the mouse?

Thanks In advance

Author
25 Mar 2006 10:18 AM
Mike D Sutton
> This is really a two part question.  Is there a way to create a
> transparent overlay graphics form that will sit over other programs?

If you're targeting only 2K and XP (+) systems then you can use layered
windows for this.

> And if so is there a way to rotate the graphics the way photoshop
> rotates an image using the mouse?

You would need to rotate the graphic in memory and update the layered window
bitmap each time the image is re-calculated.  You'll find plenty examples of
rotating an image in memory if you have a hunt around for them, however it's
going to be pretty inefficient..  Perhaps explain what you're trying to
accomplish and there may be a better way of going about it.
Hope this helps,

    Mike


- Microsoft Visual Basic MVP -
E-Mail: ED***@mvps.org
WWW: Http://EDais.mvps.org/
Author
25 Mar 2006 1:40 PM
Graphics
THanks I worked out the rotation in the picture box but I am not sure
what you mean by layered windowing

Thanks again

Show quoteHide quote
On Sat, 25 Mar 2006 10:18:10 -0000, "Mike D Sutton" <ED***@mvps.org>
wrote:

>> This is really a two part question.  Is there a way to create a
>> transparent overlay graphics form that will sit over other programs?
>
>If you're targeting only 2K and XP (+) systems then you can use layered
>windows for this.
>
>> And if so is there a way to rotate the graphics the way photoshop
>> rotates an image using the mouse?
>
>You would need to rotate the graphic in memory and update the layered window
>bitmap each time the image is re-calculated.  You'll find plenty examples of
>rotating an image in memory if you have a hunt around for them, however it's
>going to be pretty inefficient..  Perhaps explain what you're trying to
>accomplish and there may be a better way of going about it.
>Hope this helps,
>
>    Mike
>
>
> - Microsoft Visual Basic MVP -
>E-Mail: ED***@mvps.org
>WWW: Http://EDais.mvps.org/
>
Author
25 Mar 2006 10:54 PM
Mike D Sutton
> THanks I worked out the rotation in the picture box but I am not sure
> what you mean by layered windowing

Have a look for the term in the MSDN, you'll find the API calls used to
accomplish it.
Hope this helps,

    Mike


- Microsoft Visual Basic MVP -
E-Mail: ED***@mvps.org
WWW: Http://EDais.mvps.org/