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

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, May 25, 2006 9:02:33 AM(UTC)

marasma  
marasma

Groups: Registered
Posts: 51


Hi,

Is possible to fill a polygon area with a texture? The texture must be created from a little bitmap filled many times in the poligon area.

I see then Freehand hotspot object, but the are is filled by only one stretched image. Is possible to fill the are how I need?

Thanks

 

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 : Monday, May 29, 2006 1:54:28 AM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,022

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

Texture fill styles are currently not supported in annotation. 
Some annotations have the ability to contain a bitmap, but the polygon is not one of them.

 
#3 Posted : Thursday, November 9, 2006 2:55:47 AM(UTC)

marasma  
marasma

Groups: Registered
Posts: 51


Hi,
now I'm able to put a texture in the AnnPicture property of the AnnFreeHotSpotObjetct using the Canvascommand. The image that I create is a 2D image, but I need to apply the ViewPerspective command. Applying the command to image, what I obtain is the originale image with the new perspective (good :-)), but the image now as background color in the area outside the Cornerpoints perimeter, and so when I insert it in thr AnnPicture of the AnnFreeHotSpotObjetct I see a wrong image.

How Can I solve this problem with LT14.5 in VB.NET?
Thanks
 
#4 Posted : Thursday, November 9, 2006 4:31:18 AM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,022

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

I'm not sure I fully understand what happens, not can I reproduce it
over here.  Can you please post a small test project that shows the problem?

Thanks,
 
#5 Posted : Sunday, November 12, 2006 7:59:35 AM(UTC)

marasma  
marasma

Groups: Registered
Posts: 51


HI,
is not simple for send you a "small" project. But I attached you some images that could be interesting for you.

Thanks!
File Attachment(s):
sample img.zip (294kb) downloaded 34 time(s).
 
#6 Posted : Sunday, November 12, 2006 11:37:48 PM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,022

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

So you want to remove this extra background, correct?  If so, then
try setting the Picture.TransparentMode property to UseColor, and the TransparentColor property to the color of the background.

 
#7 Posted : Monday, November 13, 2006 12:16:57 AM(UTC)

marasma  
marasma

Groups: Registered
Posts: 51


Ok for this, but it doesn't resolve my problem. In order to do what I need I do this:
1-I draw the AnnFreeHandHotSpotObject, representing the surface.
2-From a bitmap I create the texture of the same dimension of the BoundingRectangle of the surface
3-I put the texture in the Picture of the AnnFreeHandHotSpotObject for preview. Util this all is ok. I have the surface perfectly hwo I need.
4-For giving a 3D effect to surface I'm trying to use the PerspectiveCommand, but as you has seen in the example I sent you the texture comes smaller than the surface where I have to put it in, and so I see the backgroud color (the trasparent color doesn't help me this with issue). The only solution I have thinked is to create a texture greater then the surface, so that applying the Perspective Command it comes ever greater then surface.
What do you think about this ? How can I calculate the right dimension of the texture?
 
#8 Posted : Monday, November 13, 2006 5:41:56 AM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,022

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

It is difficult to come up with an equation that will calculate the
correct size of the pattern before applying the PerspectiveCommand to
it.  Also, such an euqation will work for a specific image
only.  I can't see any way to accomplish this except by trial and error.

 
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.092 seconds.