LEADTOOLS Support
Imaging
Imaging SDK Questions
RasterImageViewer draw content not to image draw it on a different surface
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, November 20, 2012 11:13:16 PM(UTC)
Groups: Registered
Posts: 4
Hello Leadtools community,
I need some help pls. Im stuck with the following:
I need to draw into a RasterImageViewer a complex selection mask. The user has to be able to resize, change, ... this mask. So i have to redraw it with each mousemove event. So my question is where can i draw this mask? Directly painting it in the picture is way to slow because i have to redraw the complete picture every mousemove event. I heard of a college that in a RasterViewImage there is a different layer where i can draw into to achieve this.
Im developing this in C# pls help.
tia Synergi
#2
Posted
:
Wednesday, November 21, 2012 5:00:02 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Synergi,
This depends on what you're drawing exactly and how you want to draw it.
As one option, instead of drawing on the image, you can draw on the RasterImageViewer control directly. For example, the following code shows how you can draw a rectangle on the RasterImageViewer control:
+--------------+
rasterImageViewer1.CreateGraphics().DrawRectangle(new Pen(Brushes.Red), new Rectangle(10, 10, 150, 150));
+--------------+
If this is not what you want, please give us more details about your requirements.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Wednesday, November 21, 2012 5:19:23 AM(UTC)
Groups: Registered
Posts: 4
Thx i Solved the problem myself excatly this way x)
LEADTOOLS Support
Imaging
Imaging SDK Questions
RasterImageViewer draw content not to image draw it on a different surface
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.