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
 Attach a TBitmap to the bottom of a TImageEnView?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

982 Posts

Posted - Sep 10 2017 :  17:29:26  Show Profile  Reply
Hello!

Is there a simple routine to attach a TBitmap at the bottom of a TImageEnView?

For example, the TImageEnView has a width of 500 pixels and a height of 800 pixels.
The TBitmap has a width of 400 pixels and a height of 100 pixels.

After the sticking operation, the TImageEnView has still a width of 500 pixels and a height of 900 pixels.

xequte

39053 Posts

Posted - Sep 10 2017 :  19:07:13  Show Profile  Reply
Hi Peter

I may be misunderstanding, but you can assign your bitmap to the TImageEnView and set ImageVertAlignment:

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

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

PeterPanino

982 Posts

Posted - Sep 11 2017 :  02:57:15  Show Profile  Reply
Sorry for being unclear and for my poor English.

The TImageEnView contains an image A and the TBitmap contains an image B.

So these two images should be "glued" together vertically.
Go to Top of Page

PeterPanino

982 Posts

Posted - Sep 11 2017 :  04:28:35  Show Profile  Reply
This is the desired "glue" operation:

Go to Top of Page

xequte

39053 Posts

Posted - Sep 11 2017 :  05:28:45  Show Profile  Reply
OK, please see:

https://www.imageen.com/help/IEJoinBitmaps.html


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

PeterPanino

982 Posts

Posted - Sep 11 2017 :  06:05:52  Show Profile  Reply
Nigel,

thank you. Meanwhile, I had put together this code which also works:

procedure TForm2.Button3Click(Sender: TObject);
var
  ThisBitmap: TBitmap;
  ThisIEBitmap: TIEBitmap;
  OldHeight: Integer;
begin
  ThisBitmap := TBitmap.Create;
  ThisIEBitmap := TIEBitmap.Create;
  try
    OldHeight := ImageEnView1.IEBitmap.Height;
    ThisBitmap := GetMyBitmap;
    ThisBitmap.PixelFormat := pf24bit; // important!
    ThisIEBitmap.CopyFromTBitmap(ThisBitmap);
    ImageEnView1.IEBitmap.Resize(0, 0, 0, ThisBitmap.Height, clWhite);
    ThisIEBitmap.DrawToTIEBitmap(ImageEnView1.IEBitmap, 0, OldHeight);
    ImageEnView1.Height := ImageEnView1.IEBitmap.Height;
    ImageEnView1.Repaint;
    ImageEnView1.IO.SaveToFile('R:\Image.png');
  finally
    ThisIEBitmap.Free;
    ThisBitmap.Free;
  end;
end;


BTW, I had searched for "join" in the ImageEn 7.0.0 CHM but it is not mentioned.
Go to Top of Page

xequte

39053 Posts

Posted - Sep 11 2017 :  16:02:25  Show Profile  Reply
> BTW, I had searched for "join" in the ImageEn 7.0.0 CHM but it is not mentioned.

It was added in 7.0.1 :-)

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

PeterPanino

982 Posts

Posted - Sep 12 2017 :  03:44:54  Show Profile  Reply
Is 7.0.1 an official update? If yes: How can I get it?
Go to Top of Page

xequte

39053 Posts

Posted - Sep 12 2017 :  18:41:33  Show Profile  Reply
Yes, it is official. Please fill in the form at:

https://www.imageen.com/support/downloadrequest.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: