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
 TImageEnVect background
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

randal46

8 Posts

Posted - Sep 16 2011 :  01:35:35  Show Profile  Reply
Hi,
Shouldn't this make the background black rather than white?


unit Unit1;
interface
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics,
  Controls, Forms, Dialogs, ieview, imageenview, ievect;
type
  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
  private
    ImageEnVect1: TImageEnVect;
  public
    { Public declarations }
  end;
var
  Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
  ImageEnVect1 := TImageEnVect.Create(Self);
  ImageEnVect1.Parent := Self;
  ImageEnVect1.Background := clBlack;
  ImageEnVect1.Height := 100;
  ImageEnVect1.Width := 20;
  ImageEnVect1.Left := 20;
  ImageEnVect1.Top := 130;
end;
end.

fab

1310 Posts

Posted - Sep 16 2011 :  04:07:14  Show Profile  Reply
Hi,
please create a bitmap with:


ImageEnVect1.IEBitmap.Allocate(20, 100);
ImageEnVect1.Proc.Fill(clBlack);

Or initialize a blank bitmap (so to show only the background) with:

ImageEnVect1.Blank();



Go to Top of Page

randal46

8 Posts

Posted - Sep 16 2011 :  04:21:45  Show Profile  Reply
Thanks.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: