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
 Layer dimensions convert to selections

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
jrpcguru Posted - Mar 09 2019 : 20:15:21
ImageEnView1.CopySelectionToIEBitmap

I can't find any help for ImageEnView1.CopySelectionToIEBitmap. The help for ImageEnView.AssignSelTo makes no mention of layers. Yet both of these commands yield an error message that says "Method only supported for image layers".

Is this a bug in the code or in the help file?

I am trying to programmatically make a selection and copy that selection to a second image object and nothing I have tried so far works. This is step one to see if I can do the following:

My goal is to draw several layers around sections of an image that I wish to cut out of the current image. It seems that using layers is visually easiest for a user. Save each layer's dimensions to a .INI file, restore from .INI and use the layers to define the underlying selection for purposes of copying each selection to its own file. I can save and restore the layers location & dimensions, but translating the location and dimensions into a selection and using the resulting selections to save to a file is not working.

I am using 8.3.0.

J.R.
2   L A T E S T    R E P L I E S    (Newest First)
jrpcguru Posted - Mar 10 2019 : 17:13:53
Thanks for the quick reply.
The key point that I was missing is that a selection needs to be on layer 0 which is an image layer by default, I guess. Once I made sure it was on layer 0, then things worked.
ImageenView1.AssignSelTo(ImageEnView2); was clearly the best approach.



J.R.
xequte Posted - Mar 10 2019 : 00:26:26
Hi

Rather than CopySelectionToIEBitmap, use CopySelectionToBitmap:

https://www.imageen.com/help/TImageEnView.CopySelectionToBitmap.html

or AssignSelTo.

The error, "Method only supported for image layers," means that the current layer, is not an image layer, it is a shape or other type layer. If it is actually is an image layer, can you give me the steps to reproduce?



Nigel
Xequte Software
www.imageen.com