Closed
Description
LodePNGState state;
lodepng_state_init(&state);
state.info_raw.colortype = LCT_PALETTE;
state.info_raw.bitdepth = 8;
state.info_png.color.colortype = LCT_PALETTE;
state.info_png.color.bitdepth = 8;
state.encoder.auto_convert = 0;
for(int i=0; i < palette->count; i++) {
auto r = palette->entries[i].b;
auto g = palette->entries[i].g;
auto b = palette->entries[i].r;
auto a = palette->entries[i].a;
lodepng_palette_add(&state.info_png.color, r, g, b, a);
lodepng_palette_add(&state.info_raw, r, g, b, a);
}
Metadata
Metadata
Assignees
Labels
No labels