Home | History | Annotate | Download | only in ext

Lines Matching refs:BITMAP

34     // playing back the device into a bitmap, do it at the printer's dpi instead
57 hdr->biHeight = -height; // Minus means top-down bitmap.
71 // Link the SkBitmap to the current selected bitmap in the device context.
72 SkBitmap bitmap;
76 BITMAP bitmap_data = {0};
77 if (GetObject(selected_bitmap, sizeof(BITMAP), &bitmap_data) ==
78 sizeof(BITMAP)) {
79 // The context has a bitmap attached. Attach our SkBitmap to it.
80 // Warning: If the bitmap gets unselected from the HDC,
86 succeeded = bitmap.installPixels(info, bitmap_data.bmBits,
93 bitmap.setInfo(SkImageInfo::MakeUnknown(width, height));
95 return new VectorPlatformDeviceEmf(dc, bitmap);
98 VectorPlatformDeviceEmf::VectorPlatformDeviceEmf(HDC dc, const SkBitmap& bitmap)
99 : SkBitmapDevice(bitmap),
264 const SkBitmap& bitmap,
273 bitmapBounds.isetWH(bitmap.width(), bitmap.height());
283 const SkBitmap* bitmapPtr = &bitmap;
285 // clip the tmpSrc to the bounds of the bitmap, and recompute dstRect if
297 // the bitmap, we extract a subset.
301 if (!bitmap.extractSubset(&tmpBitmap, srcIR)) {
322 const SkBitmap& bitmap,
326 // the bitmap.
331 InternalDrawBitmap(bitmap, 0, 0, paint);
338 const SkBitmap& bitmap,
345 InternalDrawBitmap(bitmap, x, y, paint);
861 void VectorPlatformDeviceEmf::InternalDrawBitmap(const SkBitmap& bitmap,
881 int src_size_x = bitmap.width();
882 int src_size_y = bitmap.height();
897 SkAutoLockPixels lock(bitmap);
898 SkASSERT(bitmap.colorType() == kN32_SkColorType);
899 const uint32_t* pixels = static_cast<const uint32_t*>(bitmap.getPixels());
906 int row_length = bitmap.rowBytesAsPixels();
923 // The image must be loaded as a bitmap inside a device context.
937 for (int row = 0; row < bitmap.height(); ++row) {
940 int src_offset = row * bitmap.rowBytesAsPixels();