Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#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

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, November 21, 2012 5:00:02 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

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.

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)
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.059 seconds.