Author |
Topic  |
|
sxbug

14 Posts |
Posted - Aug 30 2020 : 08:24:15
|
Hi I have several patterns (I have Put them in Timage). After I choose one of them by click, then I click on the ImageEnView1 then draw it on the current layer. How can this be achieved? thanks for your help!
sxbug |
|
sxbug

14 Posts |
Posted - Aug 30 2020 : 12:13:56
|
I have put my all pics in some TImage components, after click Timage copy pic to clipboard. Now How can I paste this pic to ImageEnView , and set position to click point ,change the pic size , set the pic background to transparent#12290; Thanks |
 |
|
xequte
    
38790 Posts |
|
sxbug

14 Posts |
Posted - Aug 30 2020 : 18:25:43
|
I want to do a function like this: the background is a tree(background pic). Users can click on the background pic to put a Image (these patterns had put into TImage) to a new layer(ImageEnView layer) just like draw apples, oranges, bananas and so on the tree. And these Images can be change the location and size etc.
I am very sorry for my poor English. Thanks for your help. |
 |
|
sxbug

14 Posts |
Posted - Aug 30 2020 : 22:18:31
|
ImageEnView1.Proc.PointPasteFromClip(X, Y); It could draw the image at the current mouse position , but could NOT change image size and set the image's background to transparent.
How can I move the image and modify it's size and transparent it's background(background is White)?
Thanks |
 |
|
xequte
    
38790 Posts |
Posted - Aug 30 2020 : 22:48:28
|
Hi
Can you do something like this:
ImageEnView1.LayersAdd( ielkImage, X, Y );
ImageEnView1.CurrentLayer.IEBitmap.Assign( Image1.Picture );
ImageEnView1.Update();
Otherwise, can you please upload a very simple demo showing your TImage content.
Also, what version of Delphi are you using? It will affect the transparency support in TImage.
Nigel Xequte Software www.imageen.com
|
 |
|
sxbug

14 Posts |
Posted - Aug 30 2020 : 23:24:36
|
Thank you Nigel. I am using Delphi 10.2 , Win 10 64Bit, ImageEN 5.2. The TImage content is PNG(background is transparent) or JPG
'ielkImage' undeclared identifier. :(
How to add layer of transparent background?(now it had a white background)
Thanks
sxbug |
 |
|
xequte
    
38790 Posts |
Posted - Aug 31 2020 : 19:39:02
|
Hi
Add iexLayers to your uses clause for ielkImage.
This method should support the transparency.
Nigel Xequte Software www.imageen.com
|
 |
|
sxbug

14 Posts |
Posted - Aug 31 2020 : 19:55:33
|
Unfortunately, ImageEn 5.2 doesn't have iexlayers unit. Is there any other way?
Thank you very much.
sxbug |
 |
|
xequte
    
38790 Posts |
|
sxbug

14 Posts |
Posted - Aug 31 2020 : 23:17:02
|
OK#12290; Thanks |
 |
|
|
Topic  |
|