mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-02 22:53:31 +00:00
e6ad7c12cd
Closes #4103 ``` var pixels = System.Runtime.InteropServices.MemoryMarshal.Cast<byte, uint>(data); foreach (ref var x in pixels) { bool isTransparent = (x >> 24) == 0; if (isTransparent) x = 0; // ensure rgb is zero too } ImageUtil.GetBitmap(data, w, h).Save(path); ``` |
||
---|---|---|
.. | ||
img |