Skip to content

Conversation

tree-chtsec
Copy link

-Image xxx.png won't generate image correctly since the alpha channel will be present in $rgbValues.

This Pull Request solve it by determining channel number with $channelNum = [Math]::Abs($bmpData.Stride) / $img.Width;

$channelNum will either be 3 or 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant