Lines Matching defs:image
309 struct wsi_win32_image *image)
313 &image->base);
321 image->dc = CreateCompatibleDC(chain->chain_dc);
332 bmp = CreateDIBSection(image->dc, &info, DIB_RGB_COLORS, &image->ppvBits, NULL, 0);
333 assert(bmp && image->ppvBits);
335 SelectObject(image->dc, bmp);
340 image->bmp_row_pitch = header.bmWidthBytes;
341 image->bmp = bmp;
342 image->chain = chain;
350 struct wsi_win32_image *image)
352 DeleteDC(image->dc);
353 if(image->bmp)
354 DeleteObject(image->bmp);
355 wsi_destroy_image(&chain->base, &image->base);
408 struct wsi_win32_image *image = &chain->images[image_index];
412 char *ptr = image->base.cpu_map;
413 char *dptr = image->ppvBits;
417 dptr += image->bmp_row_pitch;
418 ptr += image->base.row_pitches[0];
420 if (!StretchBlt(chain->chain_dc, 0, 0, chain->extent.width, chain->extent.height, image->dc, 0, 0, chain->extent.width, chain->extent.height, SRCCOPY))
480 for (uint32_t image = 0; image < chain->base.image_count; image++) {
483 &chain->images[image]);
485 while (image > 0) {
486 --image;
488 &chain->images[image]);