i created this just for fun; it seems a little easier to use.
ShapeForm.dll:
Code:
* Automatically resizes the form according to the image.
* Supports mouse dragging by default.
* Supports form transparency by default.
* Bmp form does not overlay on the InnoSetup's components,
so they will show up on the Bmp form.
* Does not require extra work; everything is automated.
ImageMasker.exe:
Code:
* Drag and drop a PNG file onto this; it will generate mask.bmp and base.bmp.
* Requires Visual C++ Redistributable 2015 or later.
Functions:
Quote:
function zCreateRgnFromBmp(WndH: HWND; const sMaskBmp: WideString; iTrRGBColor: Integer): Integer;
function zCreateFormFromBmp(WndH: HWND; const sBmpFile: WideString; bACPremultiplied: Boolean): Integer;
function zCreateFormFromBmpEx(WndH: HWND; const sBmpFile: WideString; bACPremultiplied, bDraggableForm: Boolean; iOpacityPct: Byte): Integer;
|
Example:
Code:
procedure InitializeWizard();
begin
ExtractTemporaryFile('mask.bmp');
ExtractTemporaryFile('base.bmp');
{ ShapeForm }
zCreateRgnFromBmp(WizardForm.Handle, ExpandConstant('{tmp}\mask.bmp'), clBlack);
zCreateFormFromBmpEx(WizardForm.Handle, ExpandConstant('{tmp}\base.bmp'), False, True, 100);
end;
Download:
ShapeForm + Example.rar
.