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

Method DrawImage

IO/Export/vtkSVGContextDevice2D.cxx:1420–1427  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1418
1419//------------------------------------------------------------------------------
1420void vtkSVGContextDevice2D::DrawImage(float p[2], float scale, vtkImageData* image)
1421{
1422 int dims[3];
1423 image->GetDimensions(dims);
1424 dims[0] *= scale;
1425 dims[1] *= scale;
1426 this->DrawImage(vtkRectf(p[0], p[1], dims[0], dims[1]), image);
1427}
1428
1429//------------------------------------------------------------------------------
1430void vtkSVGContextDevice2D::DrawImage(const vtkRectf& pos, vtkImageData* image)

Callers 5

PaintMethod · 0.45
RenderBackgroundMethod · 0.45
PaintMethod · 0.45
PaintMethod · 0.45
PaintMethod · 0.45

Calls 12

AddNestedElementMethod · 0.80
SetFloatAttributeMethod · 0.80
vtkRectfClass · 0.50
stringClass · 0.50
GetDimensionsMethod · 0.45
GetWidthMethod · 0.45
GetHeightMethod · 0.45
GetXMethod · 0.45
SetNameMethod · 0.45
SetAttributeMethod · 0.45
c_strMethod · 0.45
strMethod · 0.45

Tested by 2

PaintMethod · 0.36
PaintMethod · 0.36