Hello,
I would like to ask if what approach to do in order to convert CMYK image to sprite. I tried once just a simple code see snipet below.
Currently Im using Unity 5.6.6f2
public Texture2D convert_image_ToTexture(string path)
{
byte[] filedata = File.ReadAllBytes(path);
Texture2D txt = new Texture2D(90, 90);
txt.LoadImage(filedata);
return txt;
}
Texture2D textture = new ImahetoSprite_Convrtr().convert_image_ToTexture(path);
ImgLogo1.sprite = Sprite.Create(textture, new Rect(0, 0, textture.width, textture.height), new Vector2(.5f, .5f));
but I got an question mark render.
can someone help me with my problem?
Thanks in advance.