简体   繁体   English

从位图中删除Alpha通道(RGBA到RGB)

[英]Removing Alpha Channel from Bitmap (RGBA to RGB)

i was wondering if someone has a code to do this or point me in the right direction, i tried elemenating the 4th byte in each 4 bytes of a pixel, but it never worked. 我想知道是否有人有执行此操作的代码或将我指向正确的方向,所以我尝试在像素的每4个字节中修饰第4个字节,但它从未奏效。 i opened the 32bit image in hex editor, it was kinda all the same sequence of bytes. 我在十六进制编辑器中打开了32位图像,有点相同的字节序列。 resolution is 66x66 dots per inch 分辨率为每英寸66x66点

thanks 谢谢

I believe the "convert" program can do this. 我相信“转换”程序可以做到这一点。 It is part of the ImageMagick package. 它是ImageMagick软件包的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM