Lines Matching refs:image
19 * parts, like allocating memory to hold an image. You will have to
38 * returns zero if the image is a PNG and nonzero if it isn't a PNG.
53 * of the image to determine the file type, so it would be easiest just
119 /* Allocate/initialize the memory for image information. REQUIRED. */
160 * If you have enough memory to read in the entire image at once,
164 * adjustment), then you can read the entire image (including
173 * PNG file before the first IDAT (image data chunk). REQUIRED
282 /* This reduces the image to the application supplied palette */
285 /* An array of colors to which the image should be dithered */
291 /* This reduces the image to the palette supplied in the file */
343 /* Allocate the memory to hold the image using the fields of info_ptr. */
345 /* The easiest way to read the image: */
356 /* Now it's time to read the image. One of these methods is REQUIRED */
357 #ifdef entire /* Read the entire image in one go */
360 #else no_entire /* Read the image one or more scanlines at a time */
365 #ifdef single /* Read the image a single row at a time */
371 #else no_single /* Read the image several rows at a time */
374 #ifdef sparkle /* Read the image using the "sparkle" effect. */
377 #else no_sparkle /* Read the image using the "rectangle" effect */
383 /* If you want to display the image after every pass, do so here */
392 /* At this point you have read the entire image */
496 * This function is called for every row in the image. If the
497 * image is interlaced, and you turned on the interlace handler,
549 /* This function is called when the whole image has been read,
550 * including any chunks after the image (up to and including
556 * marks the image as finished.
561 void write_png(char *file_name /* , ... other image information ... */)
588 /* Allocate/initialize the image information data. REQUIRED */
625 * image info living in the structure. You could "|" many
633 /* Set the image information here. Width and height are up to 2^31,
656 /* If we are dealing with a grayscale image then */
658 /* Otherwise, if we are dealing with a color image then */
662 /* If the image has an alpha channel then */
668 * as to the correct gamma of the image.
672 /* Optionally write comments into the image */
724 * as appropriate to correctly scale the image.
754 /* The easiest way to write the image (you may have a different memory
759 png_byte image[height][width*bytes_per_pixel];
763 png_error (png_ptr, "Image is too tall to process in memory");
766 row_pointers[k] = image + k*width*bytes_per_pixel;
770 #ifdef entire /* Write out the entire image data in one call */
773 /* The other way to write the image - deal with interlacing */
775 #else no_entire /* Write out the image data by one or more scanlines */