Skip to content

Allow pixel-specific processors #1491

Discussion options

You must be logged in to vote

current APIs are effectively causing consumers to lose type information when they're actually working with pixel-specific images.

What type information? Nothing is lost ever. If you want to decode to a specific pixel format, use that format.

 if (typeof(TPixel) == typeof(Rgba32)) { ... }
 else { ... }

Replies: 2 comments 24 replies

Comment options

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

@DaZombieKiller
Comment options

@JimBobSquarePants
Comment options

@Sergio0694
Comment options

Sergio0694 Jan 5, 2021
Collaborator Author

@JimBobSquarePants
Comment options

Answer selected by JimBobSquarePants
Comment options

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

@antonfirsov
Comment options

@antonfirsov
Comment options

@JimBobSquarePants
Comment options

@Sergio0694
Comment options

Sergio0694 Jan 8, 2021
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
4 participants