public PNG_INFO png_get_sRGB(ref PNG_sRGB_INTENT file_srgb_intent) { if ((info_ptr_valid & PNG_INFO.sRGB) != PNG_INFO.sRGB) { return(PNG_INFO.None); } file_srgb_intent = info_ptr_srgb_intent; return(PNG_INFO.sRGB); }
public PNG_INFO png_get_sRGB(ref PNG_sRGB_INTENT file_srgb_intent) { if((info_ptr_valid&PNG_INFO.sRGB)!=PNG_INFO.sRGB) return PNG_INFO.None; file_srgb_intent=info_ptr_srgb_intent; return PNG_INFO.sRGB; }
public void png_set_sRGB_gAMA_and_cHRM(PNG_sRGB_INTENT intent) { png_set_sRGB(intent); png_set_gAMA(0.45455); png_set_cHRM(0.3127, 0.329, 0.64, 0.33, 0.3, 0.6, 0.15, 0.06); }
public void png_set_sRGB(PNG_sRGB_INTENT intent) { info_ptr_srgb_intent = intent; info_ptr_valid |= PNG_INFO.sRGB; }
public void png_set_sRGB(PNG_sRGB_INTENT intent) { info_ptr_srgb_intent=intent; info_ptr_valid|=PNG_INFO.sRGB; }
// write a sRGB chunk void png_write_sRGB(PNG_sRGB_INTENT srgb_intent) { if(srgb_intent>=PNG_sRGB_INTENT.LAST) Debug.WriteLine("Invalid sRGB rendering intent specified"); buf4[0]=(byte)srgb_intent; png_write_chunk(PNG.sRGB, buf4, 1); }