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
 load from bitmap help
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

duraganyolcu

Turkey
2 Posts

Posted - Dec 29 2011 :  10:46:57  Show Profile  Reply
hi, i am a new user of imageen. i have some troubles when using it.

i've an imageenvect component and i want to show a bitmap on it but there is no change on form when i tried.

ImageEnVect1: TImageEnVect;
...

xbitmap:=TBitmap.create;
xbitmap.width:=512; xbitmap.height:=384;
xbitmap.LoadFromFile('C:\image.bmp');

ImageEnVect1.IO.CreateFromBitmap(xbitmap);

i cannot use loadfromfile() function on imageenvect, because xbitmap is a result of another function i only have a bitmap as result, i m just trying not to use load from file. i want to assign a bitmap to imageenvect.

ImageEnVect1.IO.AttachedBitmap or
ImageEnVect1.IO.Bitmap := didn't work.

fab

1310 Posts

Posted - Dec 29 2011 :  11:16:16  Show Profile  Reply
Try:

ImageEnVect1.Assign( xbitmap );
Go to Top of Page

duraganyolcu

Turkey
2 Posts

Posted - Dec 29 2011 :  11:26:45  Show Profile  Reply
thanks fabrizio. it works.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: