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
 Create an white image
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Waheed

Kuwait
36 Posts

Posted - Jul 22 2011 :  12:27:40  Show Profile  Reply
How can create an empty white filled image of certain height and width. Is this correct?
I have an ImageEnVect connected to ImageEnIO:

ImageEnIO1.AttachedIEBitmap.Create(Image1.IEBitmap.Width,
       Image1.IEBitmap.Height);
ImageEnIO1.AttachedIEBitmap.Fill(clWhite);

xequte

38514 Posts

Posted - Jul 22 2011 :  12:34:34  Show Profile  Reply
Hi Waheed

Don't use the AttachedIEBitmap if the ImageEnIO is also attached to an ImageEnVect.

What are you planning to do do with image that you create?


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

Waheed

Kuwait
36 Posts

Posted - Jul 22 2011 :  14:38:19  Show Profile  Reply
save it
Go to Top of Page

fab

1310 Posts

Posted - Jul 23 2011 :  11:53:31  Show Profile  Reply

  with TIEBitmap.Create(200, 200) do
  begin
    Fill(clWhite);
    Write('output.bmp');
    Free();
  end;


note1: it uses "hyieutils" unit.
note2: surrond with try..finally
note3: change 'output.bmp' to 'output.jpg' to save jpegs.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: