Skip to content

Transparency + Colors lost after Resize of a Transparent Image #2222

Answered by JimBobSquarePants
Maxxxel asked this question in Q&A
Discussion options

You must be logged in to vote

I don't fully understand what you are saying here. Are you saying that if you resize an image where the alpha component of the image is 0, then the result has 0 for red, green, blue components?

If so, that makes perfect sense since you are pre-multiplying the other components by the alpha value. You should set ResizeOptions.PremultiplyAlpha to false to avoid this.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@JimBobSquarePants
Comment options

@Maxxxel
Comment options

@Maxxxel
Comment options

@Maxxxel
Comment options

@JimBobSquarePants
Comment options

Answer selected by JimBobSquarePants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants