This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, April 20, 2007 4:53:43 PM(UTC)
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)
#2
Posted
:
Tuesday, April 24, 2007 7:12:56 AM(UTC)
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)
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.