Lines Matching refs:png_set_alpha_mode

712 called before the PNG file header had been read and png_set_alpha_mode() did not
804 By default, if png_set_alpha_mode() is not called, libpng assumes that all
807 better to call png_set_alpha_mode() with PNG_DEFAULT_sRGB than rely on the
828 you may need to call png_set_alpha_mode:
831 png_set_alpha_mode(png_ptr, mode, screen_gamma);
837 how it affects the output depends on the mode. png_set_alpha_mode() sets the
840 png_set_alpha_mode() - if you call it after it will override the settings made
841 by png_set_alpha_mode().
877 channels; png_set_alpha_mode() with one of the modes causes the decoder to
910 If you call png_set_gamma() after png_set_alpha_mode() you
955 them, there are three recommended ways of using png_set_alpha_mode():
957 png_set_alpha_mode(png_ptr, PNG_ALPHA_PNG,
964 png_set_alpha_mode(png_ptr, PNG_ALPHA_STANDARD,
974 png_set_alpha_mode(png_ptr, PNG_ALPHA_OPTIMIZED,
983 The following are examples of calls to png_set_alpha_mode to achieve the
987 png_set_alpha_mode(pp, PNG_ALPHA_PNG, PNG_DEFAULT_sRGB);
1003 png_set_alpha_mode(pp, PNG_ALPHA_PNG, PNG_GAMMA_MAC);
1009 png_set_alpha_mode(pp, PNG_ALPHA_STANDARD, PNG_GAMMA_LINEAR);
1019 png_set_alpha_mode(pp, PNG_ALPHA_STANDARD, PNG_DEFAULT_sRGB);
1028 png_set_alpha_mode(pp, PNG_ALPHA_OPTIMIZED, PNG_DEFAULT_sRGB);
1047 png_set_alpha_mode(pp, PNG_ALPHA_BROKEN, PNG_DEFAULT_sRGB);
1057 If you have PNG files with no gamma information png_set_alpha_mode allows
1061 png_set_alpha_mode always sets the output gamma but only sets the PNG
1064 png_set_alpha_mode(pp, PNG_ALPHA_PNG, PNG_DEFAULT_sRGB);
1065 png_set_alpha_mode(pp, PNG_ALPHA_PNG, PNG_GAMMA_MAC);
1071 fire if more than one call to png_set_alpha_mode and png_set_background is
1238 provided by an earlier call to png_set_gamma or png_set_alpha_mode.
2025 Do not call it if you called png_set_alpha_mode(); doing so will damage the
2026 settings put in place by png_set_alpha_mode(). (If png_set_alpha_mode() is