Creating and processing Overlays

Feature Requests for GdPicture.NET.
Post Reply
Juergen
Posts: 3
Joined: Wed Feb 25, 2009 12:24 pm

Creating and processing Overlays

Post by Juergen » Wed Feb 25, 2009 1:06 pm

Hello,

I am Icon a designer and developer. I have tested different Imaging software. Your Imaging software likes me best of all.
But I have not found any way to lay one or several Pictures as overlay about a picture
and to be able to select after this by user to explain graphics operations.
I also miss the possibility that a user can select an Overlay and shift this Overlay with the mouse and can zoom with mouse.

With best regards

Jürgen

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Creating and processing Overlays

Post by Loïc » Wed Feb 25, 2009 5:17 pm

Hi,

Are you talking about a magnification feature ?

Best regards,

Loïc

Juergen
Posts: 3
Joined: Wed Feb 25, 2009 12:24 pm

Re: Creating and processing Overlays

Post by Juergen » Wed Feb 25, 2009 7:39 pm

Hello,

Sorry, Zoom was the wrong word. User must be able to increase or decrease the size of an overlay with mouse.

Best regards

Jürgen

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Creating and processing Overlays

Post by Loïc » Sun Mar 01, 2009 3:33 pm

Hi,

You can easily do that using GdViewer controls into GdViewer control :D

IE:

- Add 3 controls to your form: GdViewer1 (the container object), GdViewer 2 & GdViewer 3: the childs.
- Set the BackColor of GdViewer2 & GdViewer3 as transparent.

Add this code:

Code: Select all

GdViewer1.Controls.Add(GdViewer2)
GdViewer1.Controls.Add(GdViewer3)

Now you will be able to zoom, move pan and overlay image.

Let me know if you need more details.

Cheers,

Loïc

Juergen
Posts: 3
Joined: Wed Feb 25, 2009 12:24 pm

Re: Creating and processing Overlays

Post by Juergen » Wed Mar 04, 2009 6:14 pm

Hello,

thank you. Your sample code works fine. Now I have unsuccesfully tried to implement a function, wich allows a user to select the overlay and resize the selection and move. I think, I have to to a work around, or is there a function to resize and move a picture in realtime while using the Mousemode MouseModeAreaSelection? The Move of AreaSelection is limited by the Size of the Overlay (32*32 Pixel). The size of GDViewer which display the Overlay is 256*256 Pixel. And I need to move the Overlay to the buttom right corner of the gdviewer control.

Ciao Jürgen

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Creating and processing Overlays

Post by Loïc » Fri Mar 06, 2009 4:08 pm

Hi,

You must use the mouse events of the picture you want to move/resize. This needs some code but can be done easily. I'll try to add this kind of sample for the next release.
The Move of AreaSelection is limited by the Size of the Overlay
I'ts normal, the area of selection in an object embed within the Viewer, therefore it can be moved outside it.

Best regards,

Loïc

DanH
Posts: 11
Joined: Mon Mar 30, 2009 10:13 pm

Re: Creating and processing Overlays

Post by DanH » Sat Oct 19, 2013 10:43 pm

Hi Loic,

I'm using GDPicture.NET 10 and VB6 interop. GDViewer does not appear to be a container object in my environment. What am I missing ?

I am replacing an old PictureBox that has various objects overlaid.

Best regards,
DanH

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests