• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:png_set_alpha_mode

707 called before the PNG file header had been read and png_set_alpha_mode() did not
799 By default, if png_set_alpha_mode() is not called, libpng assumes that all
802 better to call png_set_alpha_mode() with PNG_DEFAULT_sRGB than rely on the
823 you may need to call png_set_alpha_mode:
826 png_set_alpha_mode(png_ptr, mode, screen_gamma);
832 how it affects the output depends on the mode. png_set_alpha_mode() sets the
835 png_set_alpha_mode() - if you call it after it will override the settings made
836 by png_set_alpha_mode().
872 channels; png_set_alpha_mode() with one of the modes causes the decoder to
905 If you call png_set_gamma() after png_set_alpha_mode() you
950 them, there are three recommended ways of using png_set_alpha_mode():
952 png_set_alpha_mode(png_ptr, PNG_ALPHA_PNG,
959 png_set_alpha_mode(png_ptr, PNG_ALPHA_STANDARD,
969 png_set_alpha_mode(png_ptr, PNG_ALPHA_OPTIMIZED,
978 The following are examples of calls to png_set_alpha_mode to achieve the
982 png_set_alpha_mode(pp, PNG_ALPHA_PNG, PNG_DEFAULT_sRGB);
989 png_set_alpha_mode(pp, PNG_ALPHA_PNG, PNG_GAMMA_MAC);
995 png_set_alpha_mode(pp, PNG_ALPHA_STANDARD, PNG_GAMMA_LINEAR);
1005 png_set_alpha_mode(pp, PNG_ALPHA_STANDARD, PNG_DEFAULT_sRGB);
1014 png_set_alpha_mode(pp, PNG_ALPHA_OPTIMIZED, PNG_DEFAULT_sRGB);
1033 png_set_alpha_mode(pp, PNG_ALPHA_BROKEN, PNG_DEFAULT_sRGB);
1043 If you have PNG files with no gamma information png_set_alpha_mode allows
1047 png_set_alpha_mode always sets the output gamma but only sets the PNG
1050 png_set_alpha_mode(pp, PNG_ALPHA_PNG, PNG_DEFAULT_sRGB);
1051 png_set_alpha_mode(pp, PNG_ALPHA_PNG, PNG_GAMMA_MAC);
1057 fire if more than one call to png_set_alpha_mode and png_set_background is
1211 provided by an earlier call to png_set_gamma or png_set_alpha_mode.
1988 Do not call it if you called png_set_alpha_mode(); doing so will damage the
1989 settings put in place by png_set_alpha_mode(). (If png_set_alpha_mode() is