borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (A very stupid Question!)Next Topic (API CALLS IN VB) New Topic New Poll Post Reply
AndreaVB Forum : API : Image Processing
Poster Message
Asim-GDI GURU
Level: Sage

Registered: 29-07-2005
Posts: 54

icon Image Processing

Hi there,
I've already done that, just want to make sure is it the proper way of doing it...
All of you must have used the LASSO tool in any Image Processor like Adobe where the user can choose a fixed region to be processed by the Application.I made that using a region out of the user defined points ( where the user clicked, I recorded those points in array ) and then HITESTING against that region to see if the pixel ( under consideration of the process ) is in the region or not.If it is then it is processed otherwise it is left behind as it is.
I want to know is it the right way of doing this problem.Because this way it is simpler and not even wanting much memory.See just one region.
Anyone with a much simpler or correct way fo doing this..?

Regards,
Asim Siddiqui.

28-09-2005 at 11:48 AM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: Image Processing

Hi,
I believe that you are correct in your method.. ie.

store point at mousedown
set flag to indicate that you have got a region
capture mouse
use drawlassoo
store point at mouseup
on mousedown
if ptInRect (region) then
    drag the region
else
    start a new region/lassoo
end if

This is the way we do it, in my company, on object selection/dnd, etc.

Regards,
Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

28-09-2005 at 02:24 PM
View Profile Send Email to User Show All Posts | Quote Reply
Asim-GDI GURU
Level: Sage

Registered: 29-07-2005
Posts: 54
icon Re: Image Processing

Hi there,
Well, you used to do this technique in simply another situation where there's no other way doing that.But I asked about the Lasso Tool Technique.I think there's no other technique in this situation too...
Because I asked this same question over several forums but couldn't get any other better technique.And even I've searched for this technique but all say about the technique I'm using.
Thanks for answering...

Regards,
Asim Siddiqui.

28-09-2005 at 05:06 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : API : Image Processing
Previous Topic (A very stupid Question!)Next Topic (API CALLS IN VB) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder