T O P I C R E V I E W |
HMArnold |
Posted - Mar 18 2015 : 07:39:59 I can load an image taken orthogonally from a UAV, rotate it to the correct orientation using clBlue as the background colors that show up as triangles on each corner, select all blue pixels, invert the selection to lose the blue triangles, and use "SelectionMask.CopyIEBitmap" to copy just the rotated image without the triangles to a new bitmap.
Works great
How do I copy the rotated image to a location other than 0,0 of the new bitmap?
I know the pixel coordinates that would correlate to the GPS coordinates of the center of the image, but can only get the trimmed image in the upper left corner of the final image.
If I use anything like CopyRect I get the background triangles back again.
Any suggestions on where I can find this info would be appreciated.
I'm attaching an image of the results when I use rotate the image and when I use the "SelectionMask.CopyIEBitmap" to 0,0.
I don't mind paying for support on this issue if you have such a program
Thanks
Hank
HM Arnold |
2 L A T E S T R E P L I E S (Newest First) |
HMArnold |
Posted - Mar 19 2015 : 03:42:39 Yes, I was working with TImageEnView.
There two procedures did exactly what I was looking for.
Thanks very much for the solution
Hank
HM Arnold |
xequte |
Posted - Mar 18 2015 : 20:41:28 Sorry, I'm not quite following.
Are you saying you have this image:
And you want to draw it onto another image without the blue background?
Where is this image? In a TImageEnView?
Not sure if this is relevant, but have a look at:
http://www.imageen.com/help/TImageEnProc.SetTransparentColors.html http://www.imageen.com/help/TIEBitmap.DrawToCanvasWithAlpha.html
Nigel Xequte Software www.xequte.com nigel@xequte.com |
|
|