tags:

views:

36

answers:

1

Why my bitmap is not full screen size?

BitmapImage1 := TBitmapImage.Create(Page);

Its somehow made smaller by INNO ?

A: 

Tom, you must set the Parent,Align and Stretch properties to fill the background pf the custom page with your image.

try out this code

var
  Page                 : TWizardPage;
  BackgroundBitmapImage: TBitmapImage;
  s: string;
begin
 Page := CreateCustomPage(wpWelcome, 'Custom Page', 'Test');
 ExtractTemporaryFile('background.bmp');
 s:=ExpandConstant('{tmp}')+'\background.bmp';
 BackgroundBitmapImage := TBitmapImage.Create(Page);
 BackgroundBitmapImage.Bitmap.LoadFromFile(s);
 BackgroundBitmapImage.Parent := Page.Surface;
 BackgroundBitmapImage.Align:=alCLient;
 BackgroundBitmapImage.Stretch:=True; 
end;
RRUZ
thanks, but there is still a quite big margin especially on left side of surface??
Tom