Skip to content

added support loading png files with RGB coloring type#501

Merged
ABSitf merged 2 commits intomasterfrom
i1145_load_png_rgb
Sep 15, 2022
Merged

added support loading png files with RGB coloring type#501
ABSitf merged 2 commits intomasterfrom
i1145_load_png_rgb

Conversation

@ABSitf
Copy link
Contributor

@ABSitf ABSitf commented Sep 14, 2022

No description provided.

for ( int i = 0; i < result.resolution.y; ++i )
ptrs[result.resolution.y - i - 1] = ( unsigned char* )( rawPixels.data() + result.resolution.x * i );
png_read_image( png.pngPtr, ptrs.data() );
auto& pixels = result.pixels;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it really needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@ABSitf ABSitf merged commit 17c9034 into master Sep 15, 2022
@ABSitf ABSitf deleted the i1145_load_png_rgb branch September 15, 2022 00:32
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.

2 participants