#1
Posted
:
Thursday, November 2, 2017 5:40:43 PM(UTC)
Groups: Registered
Posts: 32
I have an enhanced meta file (from clipboard) that contains a 16bpp image RGBA, I save the image from the meta file as a 16 bpp bmp.
I want to now read the image and remove the alpha channel altogether. I have no control over the source of the clipboard data.
Using v17 c++ API, any direction would be appreciated.
T
#2
Posted
:
Friday, November 3, 2017 11:04:57 AM(UTC)
Groups: Registered
Posts: 119
Was thanked: 4 time(s) in 4 post(s)
Hello,
What may be best in order to remove the alpha channel of your 16bpp image will be to use L_ColorResBitmap to change your image to 12bpp. L_ColorResBitmap Converts a bitmap from any bits-per-pixel to any bits-per-pixel. This function provides flexibility in specifying the output destination and in specifying the palette to use. This will remove that alpha channel from your image when converting it to 12bpp. You can see a link to that here with Version 17:
There is also a code tip that was done a couple years back that demonstrates removing the alpha channel. This demo is written in VB / C# / CDLL using Version 19 of the SDK and within the CDLL project is an example of using L_ColorResBitmap. This should be very similar, if not the same, as Version 17.
Code Tip:https://www.leadtools.com/support/forum/posts/t10994-Code-Tip--Removing-Alpha-Channel-from-32-and-64-bit-imagesNick Villalobos
Developer Support Engineer
LEAD Technologies, Inc.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.