Click or drag to resize
DrawingWindowDrawPicture Method (Double, Double, String, Double, Double, Double)
Loads and draws a picture centered at (X, Y) within the specified rectangle with sizes in desiredWidth and desiredHeight. The picture will be scaled to fit the rectangle

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public DrawingVisual DrawPicture(
	double x,
	double y,
	string filename,
	double desiredWidth,
	double desiredHeight,
	double degrees
)

Parameters

x
Type: SystemDouble
the X-coordinate of the center of the picture
y
Type: SystemDouble
the Y-coordinate of the center of the picture
filename
Type: SystemString
the file name, relative or absolute path or an URL
desiredWidth
Type: SystemDouble
the width of the rendered picture
desiredHeight
Type: SystemDouble
the height of the rendered picture
degrees
Type: SystemDouble
the degree to rotate around the center

Return Value

Type: DrawingVisual
A drawing visual as handle to the drawing
See Also