Lines Matching refs:png_set_alpha_mode

713 called before the PNG file header had been read and png_set_alpha_mode() did not
805 By default, if png_set_alpha_mode() is not called, libpng assumes that all
808 better to call png_set_alpha_mode() with PNG_DEFAULT_sRGB than rely on the
829 you may need to call png_set_alpha_mode:
832 png_set_alpha_mode(png_ptr, mode, screen_gamma);
838 how it affects the output depends on the mode. png_set_alpha_mode() sets the
841 png_set_alpha_mode() - if you call it after it will override the settings made
842 by png_set_alpha_mode().
878 channels; png_set_alpha_mode() with one of the modes causes the decoder to
911 If you call png_set_gamma() after png_set_alpha_mode() you
956 them, there are three recommended ways of using png_set_alpha_mode():
958 png_set_alpha_mode(png_ptr, PNG_ALPHA_PNG,
965 png_set_alpha_mode(png_ptr, PNG_ALPHA_STANDARD,
975 png_set_alpha_mode(png_ptr, PNG_ALPHA_OPTIMIZED,
984 The following are examples of calls to png_set_alpha_mode to achieve the
988 png_set_alpha_mode(pp, PNG_ALPHA_PNG, PNG_DEFAULT_sRGB);
1004 png_set_alpha_mode(pp, PNG_ALPHA_PNG, PNG_GAMMA_MAC);
1010 png_set_alpha_mode(pp, PNG_ALPHA_STANDARD, PNG_GAMMA_LINEAR);
1020 png_set_alpha_mode(pp, PNG_ALPHA_STANDARD, PNG_DEFAULT_sRGB);
1029 png_set_alpha_mode(pp, PNG_ALPHA_OPTIMIZED, PNG_DEFAULT_sRGB);
1048 png_set_alpha_mode(pp, PNG_ALPHA_BROKEN, PNG_DEFAULT_sRGB);
1058 If you have PNG files with no gamma information png_set_alpha_mode allows
1062 png_set_alpha_mode always sets the output gamma but only sets the PNG
1065 png_set_alpha_mode(pp, PNG_ALPHA_PNG, PNG_DEFAULT_sRGB);
1066 png_set_alpha_mode(pp, PNG_ALPHA_PNG, PNG_GAMMA_MAC);
1072 fire if more than one call to png_set_alpha_mode and png_set_background is
1239 provided by an earlier call to png_set_gamma or png_set_alpha_mode.
2026 Do not call it if you called png_set_alpha_mode(); doing so will damage the
2027 settings put in place by png_set_alpha_mode(). (If png_set_alpha_mode() is