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
 I want to draw a pic on current layer by click
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

sxbug

14 Posts

Posted - Aug 30 2020 :  08:24:15  Show Profile  Reply
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  Show Profile  Reply
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
Go to Top of Page

xequte

38616 Posts

Posted - Aug 30 2020 :  17:16:54  Show Profile  Reply
Hi

If you want to assign the content of a TImage to a TImageEnView, you can just use assign:

ImageEnView1.Assign( Image1 );



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

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

sxbug

14 Posts

Posted - Aug 30 2020 :  18:25:43  Show Profile  Reply
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.
Go to Top of Page

sxbug

14 Posts

Posted - Aug 30 2020 :  22:18:31  Show Profile  Reply
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
Go to Top of Page

xequte

38616 Posts

Posted - Aug 30 2020 :  22:48:28  Show Profile  Reply
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
Go to Top of Page

sxbug

14 Posts

Posted - Aug 30 2020 :  23:24:36  Show Profile  Reply
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
Go to Top of Page

xequte

38616 Posts

Posted - Aug 31 2020 :  19:39:02  Show Profile  Reply
Hi

Add iexLayers to your uses clause for ielkImage.

This method should support the transparency.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

sxbug

14 Posts

Posted - Aug 31 2020 :  19:55:33  Show Profile  Reply
Unfortunately, ImageEn 5.2 doesn't have iexlayers unit. Is there any other way?

Thank you very much.

sxbug
Go to Top of Page

xequte

38616 Posts

Posted - Aug 31 2020 :  22:58:48  Show Profile  Reply
Actually, the main issue with 5.2.0 is that it won't inherit the transparency when assigning from a TImage.

You can extend your license to the latest version at:

https://www.imageen.com/order/index.html#Extensions


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

sxbug

14 Posts

Posted - Aug 31 2020 :  23:17:02  Show Profile  Reply
OK#12290;
Thanks
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: