mirror of
https://github.com/randy408/libspng
synced 2025-03-28 21:13:20 +00:00
README: update usage [skip-ci]
This commit is contained in:
parent
de9abac5ab
commit
0aa258cb85
@ -71,6 +71,9 @@ spng_ctx_free(ctx);
|
||||
/* Creating an encoder context requires a flag */
|
||||
spng_ctx *enc = spng_ctx_new(SPNG_CTX_ENCODER);
|
||||
|
||||
/* Encode to internal buffer managed by the library */
|
||||
spng_set_option(enc, SPNG_ENCODE_TO_BUFFER, 1);
|
||||
|
||||
/* Specify image dimensions, PNG format */
|
||||
struct spng_ihdr ihdr =
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user