c# - Convert Grayscale image into RGB with Magick.Net -


is possible convert image grayscale color space rgb using magick.net?

if is, has done? i've tried this:

image.format = magickformat.png; image.colorspace = imagemagick.colorspace.srgb; 

when setting values format , colorspace respectively persist in memory, once write method called gets reverted original values.

i'm wondering if needed perform transformation or along these lines, example when converting cmyk rgb 1 has this:

image.transformcolorspace(imagemagick.colorprofile.uswebcoatedswop, imagemagick.colorprofile.srgb); 

it looks me i'm missing obvious, it's hard find out there subject.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -