Jump to content

Take image of form in a uniImage


larkante

Recommended Posts

  • 2 years later...

I have two image in any platform of UniGui, TUniImage or TUniPanel or UniCanvas etc
Now I must merge two images in one.
Anybody knows?

 

like below (in VCL)
===================
procedure MergeToImages(img1, img2 : TImage; x, y : integer);  // merging img2  in x, y position of img1 in length of in 100px Rect
var DstRect : TRect;
begin
  img1.Canvas.CopyMode := cmSrcAnd;
  DstRect := Rect(x-100, y-100, X+100, Y+100);
  img1.Canvas.CopyRect(DstRect, img2.Canvas, DstRect);
end;

thanks

Link to comment
Share on other sites

I can find the solution for TUniImage:
The canvas is in the TUniImage.picture.bitmap instead of TImage.canvas 
But in the TUnipanel it dosent work and you can not changed the picture of the backgraund property of UniPanel!
 think this is because that TUniPanel is in client side and server can not edit that.
if anyone have a solution for TUnipanel i will be very happy to know that.

Teşekkürler.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...