Lines Matching refs:height
54 static bool CheckDimensions(int stride, int width, int height) {
55 if (stride < 0 || width < 0 || height < 0)
57 if (height > 0 && width > INT_MAX / height)
63 int stride, int width, int height) {
66 if (!CheckDimensions(stride, width, height))
69 int out_len = width * height;
79 fprintf(fp, "P6\n# PDF test render\n%d %d\n255\n", width, height);
83 for (int h = 0; h < height; ++h) {
101 int stride, int width, int height) {
102 if (!CheckDimensions(stride, width, height))
108 buffer, width, height, stride, false, &png_encoding)) {
138 int stride, int width, int height) {
139 if (!CheckDimensions(stride, width, height))
142 int out_len = stride * height;
155 bmi.bmiHeader.biHeight = -height; // top-down image
174 int height = static_cast<int>(FPDF_GetPageHeight(page));
181 HRGN rgn = CreateRectRgn(0, 0, width, height);
188 Rectangle(dc, 0, 0, width + 1, height + 1);
190 FPDF_RenderPage(dc, page, 0, 0, width, height, 0,
353 int height = static_cast<int>(FPDF_GetPageHeight(page) * scale);
355 FPDF_BITMAP bitmap = FPDFBitmap_Create(width, height, alpha);
361 FPDFBitmap_FillRect(bitmap, 0, 0, width, height, fill_color);
362 FPDF_RenderPageBitmap(bitmap, page, 0, 0, width, height, 0, 0);
364 FPDF_FFLDraw(form, bitmap, page, 0, 0, width, height, 0, 0);
372 WriteBmp(name.c_str(), page_index, buffer, stride, width, height);
380 WritePng(name.c_str(), page_index, buffer, stride, width, height);
384 WritePpm(name.c_str(), page_index, buffer, stride, width, height);