Skip to content

fix: fetch channel number dynamically. (3 or 4)#22

Open
tree-chtsec wants to merge 1 commit intopeewpw:masterfrom
tree-chtsec:master
Open

fix: fetch channel number dynamically. (3 or 4)#22
tree-chtsec wants to merge 1 commit intopeewpw:masterfrom
tree-chtsec:master

Conversation

@tree-chtsec
Copy link
Copy Markdown

-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