MCPcopy Create free account
hub / github.com/Kitware/VTK / DrawImage

Method DrawImage

IO/ExportPDF/vtkPDFContextDevice2D.cxx:1308–1318  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1306
1307//------------------------------------------------------------------------------
1308void vtkPDFContextDevice2D::DrawImage(float p[2], float scale, vtkImageData* image)
1309{
1310 assert(p);
1311 assert(image);
1312
1313 int dims[3];
1314 image->GetDimensions(dims);
1315 dims[0] *= scale;
1316 dims[1] *= scale;
1317 this->DrawImage(vtkRectf(p[0], p[1], dims[0], dims[1]), image);
1318}
1319
1320//------------------------------------------------------------------------------
1321void vtkPDFContextDevice2D::DrawImage(const vtkRectf& pos, vtkImageData* image)

Callers 1

PaintMethod · 0.45

Calls 10

PrepareImageDataMethod · 0.95
HPDF_LoadRawImageFromMemFunction · 0.85
HPDF_Page_DrawImageFunction · 0.85
GetScalarPointerMethod · 0.80
assertFunction · 0.50
vtkRectfClass · 0.50
GetDimensionsMethod · 0.45
GetScalarTypeMethod · 0.45
UnRegisterMethod · 0.45

Tested by 1

PaintMethod · 0.36