ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Bitmap Copy to Position Other Than 0,0
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

HMArnold

USA
23 Posts

Posted - Mar 18 2015 :  07:39:59  Show Profile  Reply
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

xequte

38499 Posts

Posted - Mar 18 2015 :  20:41:28  Show Profile  Reply
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
Go to Top of Page

HMArnold

USA
23 Posts

Posted - Mar 19 2015 :  03:42:39  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: