Lines Matching refs:bitmap
67 /* Given "bitmap", this returns the pixel of bitmap at the point
70 pixel_t * Metafile::pixel_at (bitmap_t * bitmap, int x, int y)
72 return bitmap->pixels + bitmap->width * y + x;
76 /* Write "bitmap" to a PNG file specified by "path"; returns 0 on
99 bitmap_t *bitmap = &bmStore;
102 bitmap->pixels=(pixel_t *)px;
103 bitmap->width = width;
104 bitmap->height = height;
142 bitmap->width,
143 bitmap->height,
153 row_pointers = (png_byte **) png_malloc (png_ptr, bitmap->height * sizeof (png_byte *));
154 for (y = 0; y < bitmap->height; ++y) {
156 (png_byte *) png_malloc (png_ptr, sizeof (uint8_t) * bitmap->width * pixel_size);
157 row_pointers[bitmap->height - y - 1] = row; // Row order in EMF is reversed.
158 for (x = 0; x < bitmap->width; ++x) {
159 pixel_t * pixel = pixel_at (bitmap, x, y);
174 for (y = 0; y < bitmap->height; y++) {