Set every Pixel's Color Component #2421
-
I want to set all .A color component of a Rgba32, Bgra32, or Argb32 pixel format image to 255. Is the ProcessPixelRows Api the best way to do this? Considering I want all pixels to have the exact same value, would a custom IPixel class be better? |
Beta Was this translation helpful? Give feedback.
Answered by
antonfirsov
Mar 28, 2023
Replies: 1 comment 2 replies
-
Considering that your image needs to be fully opaque, can't you use |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
brianmed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Considering that your image needs to be fully opaque, can't you use
Rgb24
orBgr24
? OtherwiseProcessPixelRows
is the fastest, whileProcessPixelRowsAsVector4
is a convenient pixel-agnostic way to do it.