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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Bitmap Copy to Position Other Than 0,0

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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