We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello. there is definitely no error, is the PixelFormat correct pf32bit?
→ ColorBitmap.PixelFormat := pf32bit; ??
If I set the pf24bit, then Bitmap looks correct, if pf32bit, then draws with glitches.
function PngToIcon24(Png: TPngImage; Background: TColor): HIcon; var ColorBitmap, MaskBitmap: TBitmap; X, Y: Integer; AlphaLine: PByteArray; IconInfo: TIconInfo; TransparencyColor: TColor; begin ColorBitmap := TBitmap.Create; MaskBitmap := TBitmap.Create; try ColorBitmap.Width := Png.Width; ColorBitmap.Height := Png.Height; ColorBitmap.PixelFormat := pf32bit; <<<<<<<<<<<<<<<<<<<<<<<< (may be pf24bit ??) MaskBitmap.Width := Png.Width; MaskBitmap.Height := Png.Height; MaskBitmap.PixelFormat := pf32bit; <<<<<<<<< (may be pf1bit ??) ... ...
The text was updated successfully, but these errors were encountered:
You you please ask Uwe Raabe. He has originally written this library. I guess he knows better what is going on here.
Sorry, something went wrong.
No branches or pull requests
Hello. there is definitely no error, is the PixelFormat correct pf32bit?
→ ColorBitmap.PixelFormat := pf32bit; ??
If I set the pf24bit, then Bitmap looks correct, if pf32bit, then draws with glitches.
function PngToIcon24(Png: TPngImage; Background: TColor): HIcon;
var
ColorBitmap, MaskBitmap: TBitmap;
X, Y: Integer;
AlphaLine: PByteArray;
IconInfo: TIconInfo;
TransparencyColor: TColor;
begin
ColorBitmap := TBitmap.Create;
MaskBitmap := TBitmap.Create;
try
ColorBitmap.Width := Png.Width;
ColorBitmap.Height := Png.Height;
ColorBitmap.PixelFormat := pf32bit; <<<<<<<<<<<<<<<<<<<<<<<< (may be pf24bit ??)
MaskBitmap.Width := Png.Width;
MaskBitmap.Height := Png.Height;
MaskBitmap.PixelFormat := pf32bit; <<<<<<<<< (may be pf1bit ??)
...
...
The text was updated successfully, but these errors were encountered: