Is there a simpler way to render images with transparency (alpha or a designated transparent color) obtained from FreeImage? There seems to be one; we might call GDIplus. Below I whipped a subroutine up, containing all the GDIplus calls involved (extracted from a bigger program elsewhere). All you have to do is to add declarations of the stated Subs/Functions, the associated Enums and Types. If you use FreeImage often, it is worthwhile to spend a little time on it. The subroutine is supposed to be...
Is there a simpler way to render images with transparency (alpha or a designated transparent color) obtained from FreeImage? There seems to be one; we might call GDIplus. Below I whipped a subroutine up, containing all the GDIplus calls involved (extracted from a bigger program elsewhere). All you have to do is to add declarations of the stated Subs/Functions, the associated Enums and Types. If you use FreeImage often, it is worthwhile to spend a little time on it. The subroutine is supposed to be...
Is there a simpler way to render images with transparency (alpha or a designated transparent color) obtained from FreeImage? There seems to be one; we might call GDIplus. Below I whipped a subroutine up, containing all the GDIplus calls involved (extracted from a bigger program elsewhere). All you have to do is to add declarations of the stated Subs/Functions, the associated Enums and Types. If you use FreeImage often, it is worthwhile to spend a little time on it. The subroutine is supposed to be...
Is there a simpler way to render images with transparency (alpha or a designated transparent color) obtained from FreeImage? There seems to be one; we might call GDIplus. Below I whipped a subroutine up, containing all the GDIplus calls involved (extracted from a bigger program elsewhere). All you have to do is to add declarations of the stated Subs/Functions, the associated Enums and Types. If you use FreeImage often, it is worthwhile to spend a little time on it. The subroutine is supposed to be...
I believe you can forget about merely relying on FreeImage_PaintTransparent. It is just too good to be True. There are remarks made by Carsten Klein, the great author, notably " Since this is a wrapper for the Windows GDI function AlphaBlend(), 32-bit images, containing alpha (or per-pixel) transparency, must be premultiplied for alpha transparent regions to actually show transparent. See MSDN help on the AlphaBlend() function. ...." To run AlphaBlend, both destination and source DIBs must be 32-BPP,...
I believe you can forget about merely relying on FreeImage_PaintTransparent. It is just too good to be True. There are remarks made by Carsten Klein, the great author, notably " Since this is a wrapper for the Windows GDI function AlphaBlend(), 32-bit images, containing alpha (or per-pixel) transparency, must be premultiplied for alpha transparent regions to actually show transparent. See MSDN help on the AlphaBlend() function. ...." To run AlphaBlend, both destination and source DIBs must be 32-BPP,...
I believe you can forget about merely relying on FreeImage_PaintTransparent. It is just too good to be True. There are remarks made by Carsten Klein, the great author, notably " Since this is a wrapper for the Windows GDI function AlphaBlend(), 32-bit images, containing alpha (or per-pixel) ransparency, must be premultiplied for alpha transparent regions to actually show transparent. See MSDN help on the AlphaBlend() function. ...." Note: To run AlphaBlend, both destination and source DIBs must be...
I believe you can forget about merely relying on FreeImage_PaintTransparent. It is just too good to be True. There are remarks made by Carsten Klein, the great author, notably " Since this is a wrapper for the Windows GDI function AlphaBlend(), 32-bit images, containing alpha (or per-pixel) ransparency, must be premultiplied for alpha transparent regions to actually show transparent. See MSDN help on the AlphaBlend() function. ...." Note: To run AlphaBlend, both destination and source DIBs must be...