LEADTOOLS Support
Imaging
Imaging SDK Questions
Is it possible to fill a irregular region with LeadTools
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, June 13, 2006 11:30:38 PM(UTC)
Groups: Registered
Posts: 1
Does LeadTools provide a method to use Bitmap to fill a irregular region?
#2
Posted
:
Thursday, June 15, 2006 4:27:52 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
If you want to fill part of the image with a certain color, you simply need to define a region that covers that part (such as a polygon region) and then call the Fill function appropriate for your programming interface. The will cause filling to be restricted to the pixels within the region area.
If you need help doing that, send us more details about what you're trying to do exactly, including which Programming interface (OCX, .NET classes, DLL API, C++ Classes, etc.) you are using.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Thursday, November 9, 2006 2:37:07 AM(UTC)
Groups: Registered
Posts: 51
Is possible to fille the same are with a texture ? Using VB.NET and LT14.5.
Thanks
#4
Posted
:
Thursday, November 9, 2006 11:22:30 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
If you want to take part of the image (region of interest) and fill it with a certain pattern instead of a solid color, you can do that as follows:
1. Load a secondary image that contains the pattern, or create an empty image and draw the pattern in it. This pattern image should be equal in size or larger than the desired region.
2. Define the desired region in the target image using the Region functions (such as RasterImage.AddRectangleToRegion).
3. Use the CombineFastCommand class or the CombineCommand class to copy the pattern from the pattern image to the region in the target image.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
#5
Posted
:
Sunday, November 12, 2006 7:51:58 AM(UTC)
Groups: Registered
Posts: 51
Hi,
this is ok, but here another part of the problem. In some case I need to fill with the same texture an AnnFreeHotSpotObject. I'm able to this in the same way you suggest, but if I apply the PerspectiveCommand to the texture bitmap, it comes stretched and borders filled with the specified color appears, so I try to use the PerspectiveCommandType.Image parameter for the PerspectiveCommand, but also this fails because the texture is filled with the original image. Look at the attached images.
Thanks!
#6
Posted
:
Sunday, November 12, 2006 11:39:06 PM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
LEADTOOLS Support
Imaging
Imaging SDK Questions
Is it possible to fill a irregular region with LeadTools
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.