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 : Friday, April 20, 2007 4:53:43 PM(UTC)

hogwell  
hogwell

Groups: Registered
Posts: 6


How can I translate (offset) an image with the LEAD main control?

I see methods to rotate, trim, etc. But I need to offset a form image by 25 pixels X and 28 pixels Y.

This is a monochrome form image, so the filled pixels on the left and top should be white (0).

How can I modify a bitmap to shift it down and right like this?

(I am using LEADTools v10 w/VB6)

 

 

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 : Tuesday, April 24, 2007 7:12:56 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


Is the entire bitmap going to get resized as well or not?  The process below will work either way, but if you do not "resize" the entire image to be resized by 25x and 28y then the right 25 pixels and bottom 28 pixels will get cut off.

One simple way you can do this is to :

1. create a new image that is either the same size or the size of your image plus the extra padding (25x and 28y)
2. fill the new image with white
3. combine the original image onto the new image starting from the point (25, 28)
 
#3 Posted : Tuesday, April 24, 2007 3:22:18 PM(UTC)

hogwell  
hogwell

Groups: Registered
Posts: 6


Thanks, Greg. I'll give that a try.

 

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