diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-06-21 21:05:52 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-06-21 21:05:52 +0200 |
| commit | 352494cbb4ad2ddb650b59ce8102da3ea0942e79 (patch) | |
| tree | 26e0d545c17b6bc64a40550e493a2ba1da648070 /core/image/common.odin | |
| parent | 797c41950a90f75a279a48195baf733903e23ca3 (diff) | |
ZLIB: Start optimization.
Diffstat (limited to 'core/image/common.odin')
| -rw-r--r-- | core/image/common.odin | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/core/image/common.odin b/core/image/common.odin index 8443a2d22..7a678f5b0 100644 --- a/core/image/common.odin +++ b/core/image/common.odin @@ -1,5 +1,14 @@ package image +/* + Copyright 2021 Jeroen van Rijn <nom@duclavier.com>. + Made available under Odin's BSD-2 license. + + List of contributors: + Jeroen van Rijn: Initial implementation, optimization. + Ginger Bill: Cosmetic changes. +*/ + import "core:bytes" import "core:mem" @@ -66,10 +75,10 @@ Image_Option: If the image has an alpha channel, drop it. You may want to use `.alpha_premultiply` in this case. - NOTE: For PNG, this also skips handling of the tRNS chunk, if present, - unless you select `alpha_premultiply`. - In this case it'll premultiply the specified pixels in question only, - as the others are implicitly fully opaque. + NOTE: For PNG, this also skips handling of the tRNS chunk, if present, + unless you select `alpha_premultiply`. + In this case it'll premultiply the specified pixels in question only, + as the others are implicitly fully opaque. `.alpha_premultiply` If the image has an alpha channel, returns image data as follows: |