C# 클래스 LitDev.LDShapes

파일 보기 프로젝트 열기: litdev1/LitDev

공개 프로퍼티들

프로퍼티 타입 설명
brushes List

공개 메소드들

메소드 설명
AddAnimatedGif ( Primitive imageName, Primitive repeat ) : Primitive

Creates an animated gif shape. Do not add a very large number of these or performance may be degraded.

AddAnimatedImage ( Primitive imageName, Primitive repeat, Primitive countX, Primitive countY ) : Primitive

Creates an animation from a single image with multiple images on one layer. Do not add a very large number of these or performance may be degraded.

AddPolygon ( Primitive points ) : Primitive

Creates a polygon shape.

AddRegularPolygon ( Primitive numPoint, Primitive radius ) : Primitive

Creates a regular polygon shape.

AddStar ( Primitive numPoint, Primitive innerRadius, Primitive outerRadius ) : Primitive

Creates a star shape. Fun effects can be created with negative distances.

AnimateOpacity ( Primitive shapeName, Primitive interval, Primitive count ) : void

Set a shape to animate opacity, flash (fade out and in).

AnimateRotation ( Primitive shapeName, Primitive interval, Primitive count ) : void

Set a shape to animate rotation (rotate continuously).

AnimateZoom ( Primitive shapeName, Primitive interval, Primitive count, Primitive scaleX, Primitive scaleY ) : void

Set a shape to animate zooming (in and out).

AnimationCount ( Primitive shapeName ) : Primitive

Get the number of images in an animated image.

AnimationPause ( Primitive shapeName ) : void

Pause an animated image. Paused images can still be updated using AnimationSet

AnimationResume ( Primitive shapeName ) : void

Resume a previously paused animated image.

AnimationSet ( Primitive shapeName, Primitive image ) : void

Reset animated image to a selected image.

BrushColour ( Primitive shapeName, Primitive colour ) : void

Set shape Brush colour.

BrushEllipse ( Primitive brush, Primitive x, Primitive y, Primitive width, Primitive height ) : void

Draw an ellipse filled with a gradient of colours.

BrushGradient ( Primitive colours, Primitive orientation ) : Primitive

Create a linear or radial gradient brush.

BrushImage ( Primitive imageName ) : Primitive

Create an image brush. These brushes should work anywhere that BrushGradient can be used.

BrushPolygon ( Primitive brush, Primitive points ) : void

Draw a polygon filled with a gradient of colours.

BrushRectangle ( Primitive brush, Primitive x, Primitive y, Primitive width, Primitive height ) : void

Draw a rectangle filled with a gradient of colours.

BrushRoundedRectangle ( Primitive brush, Primitive x, Primitive y, Primitive width, Primitive height, Primitive radius ) : void

Draw a rounded rectangle filled with a gradient of colours.

BrushShape ( Primitive shapeName, Primitive brush ) : void

Set a shape Brush style as a gradient of colours.

BrushText ( Primitive text, Primitive background, Primitive foreground ) : Primitive

Create a text brush. These brushes should work anywhere that BrushGradient can be used.

Centre ( Primitive shapeName, Primitive x, Primitive y ) : void

Centre the shape on a point, also works for zoomed shapes.

FastMove ( Primitive shapeName, Primitive x, Primitive y ) : void

Moves the shape with the specified name to a new position. This method is maximally optimsed for speed.

Font ( Primitive shapeName, Primitive family, Primitive size, Primitive bold, Primitive italic ) : void

Set shape Font.

GetAllShapes ( ) : Primitive

Get an array of all currently created shapes.

GetAllShapesAt ( Primitive x, Primitive y ) : Primitive

Get an array of all of the shapes (if any) at the specified coordinates. The coordinates could be the mouse coordinates for example.

GetColour ( Primitive shapeName ) : Primitive

Get shape Brush and Pen colours.

GetLeft ( Primitive shapeName ) : Primitive

Get the left position of a shape (works for triangles, polygons and lines). Also works for shapes while animating.

GetOpacity ( Primitive shapeName ) : Primitive

Gets the opacity of a shape.

GetProperties ( Primitive shapeName ) : Primitive

Get a list of shape properties. These are .Net UIElement properties.

GetProperty ( Primitive shapeName, Primitive property ) : Primitive

Get a shape property. This is a .Net UIElement property.

GetTop ( Primitive shapeName ) : Primitive

Get the top position of a shape (works for triangles, polygons and lines). Also works for shapes while animating.

Height ( Primitive shapeName ) : Primitive

Get the shape's visible (including zoom) height.

Move ( Primitive shapeName, Primitive x, Primitive y ) : void

Moves a triangle or polygon top-left position. This method also works for lines (Shapes.AddLine).

MoveLine ( Primitive shapeName, Primitive x1, Primitive y1, Primitive x2, Primitive y2 ) : void

Moves a line shape.

MovePolygon ( Primitive shapeName, Primitive points ) : void

Moves a polygon shape.

MoveTriangle ( Primitive shapeName, Primitive x1, Primitive y1, Primitive x2, Primitive y2, Primitive x3, Primitive y3 ) : void

Moves a triangle shape.

Overlap ( Primitive shape1, Primitive shape2 ) : Primitive

Checks for shape overlap (collision detection for any ellipse or rectangle shape types). The first shape should be unZoomed and unRotated.

OverlapBox ( Primitive shape1, Primitive shape2 ) : Primitive

Checks for shape overlap of bounding boxes (collision detection).

OverlapCircle ( Primitive shape1, Primitive shape2 ) : Primitive

Checks for shape overlap of bounding circles (collision detection).

PenColour ( Primitive shapeName, Primitive colour ) : void

Set shape Pen colour.

PenStyle ( Primitive shapeName, Primitive dash, Primitive space ) : void

Set shape Pen style (dash, dot etc).

PenWidth ( Primitive shapeName, Primitive width ) : void

Set shape Pen width.

RasteriseTurtleLines ( ) : void

Rasterise all turtle trail lines. When the number of turtle trails is large the program may slow due to the number of line shapes (trails) present. This converts the turtle trails from line shapes to background drawings.

ReSize ( Primitive shapeName, Primitive width, Primitive height ) : void

Resize shape width and height (an absolute version of zoom).

RemoveTurtleLines ( ) : void

Remove all turtle trail lines.

ResetTurtle ( ) : void

Reset the Turtle after a GraphicsWindow.Clear().

RotateAbout ( Primitive shapeName, Primitive x, Primitive y, Primitive angle ) : void

Rotate a shape about a point.

SetImage ( Primitive shapeName, Primitive imageName ) : void

Set or change an image in a button or image shape.

SetProperty ( Primitive shapeName, Primitive property, Primitive value ) : void

Set a shape property. This is a .Net UIElement property.

SetShapeEvent ( Primitive shapeName ) : void

Register a shape to record mouse events: MouseDown, MouseUp, MouseEnter, MouseLeave, GotFocus and LostFocus.

SetSize ( Primitive shapeName, Primitive width, Primitive height ) : void

Reset the size of a shape as if it was created with the new size. The position (top left point) is unchanged.

SetTurtleImage ( Primitive imageName, Primitive size ) : void

Set the turtle to an image.

Skew ( Primitive shapeName, Primitive angleX, Primitive angleY ) : void

Skews the shape with the specified name by the specified angles.

Width ( Primitive shapeName ) : Primitive

Get the shape's visible (including zoom) width.

ZIndex ( Primitive shapeName, Primitive z_index ) : void

Set shape z index (layer position negative are background and positive are foreground - default 0).

ZoomAll ( Primitive scaleX, Primitive scaleY ) : void

Zoom all shapes.

비공개 메소드들

메소드 설명
BackgroundImage ( Primitive imageName ) : void
BrushGradientBackground ( Primitive brush ) : void
BrushGradientEllipse ( Primitive brush, Primitive x, Primitive y, Primitive width, Primitive height ) : void
BrushGradientPolygon ( Primitive brush, Primitive points ) : void
BrushGradientRectangle ( Primitive brush, Primitive x, Primitive y, Primitive width, Primitive height ) : void
BrushGradientRoundedRectangle ( Primitive brush, Primitive x, Primitive y, Primitive width, Primitive height, Primitive radius ) : void
BrushGradientShape ( Primitive shapeName, Primitive brush ) : void
Centre_Delegate ( ) : void
DoubleAnimateProperty ( string name, IAnimatable animatable, DependencyProperty property, double end, double timespan ) : void
FastMove_Delegate ( ) : void
Overlap_Delegate ( ) : void
_HitTestFilterGeometry ( DependencyObject obj ) : HitTestFilterBehavior
_HitTestResult ( System.Windows.Media.HitTestResult result ) : HitTestResultBehavior
_HitTestResultGeometry ( System.Windows.Media.HitTestResult result ) : HitTestResultBehavior
_ShapeEventsGotFocus ( Object sender, RoutedEventArgs e ) : void
_ShapeEventsLostFocus ( Object sender, RoutedEventArgs e ) : void
_ShapeEventsMouseDown ( Object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
_ShapeEventsMouseEnter ( Object sender, System.Windows.Input.MouseEventArgs e ) : void
_ShapeEventsMouseLeave ( Object sender, System.Windows.Input.MouseEventArgs e ) : void
_ShapeEventsMouseUp ( Object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
animation_Tick ( object sender, EventArgs e ) : void
getNewBrushName ( ) : string
getPoints ( Primitive points ) : System.Windows.Media.PointCollection
treeViewBrushColour ( System.Windows.Controls.ItemCollection items, SolidColorBrush brush ) : void
treeViewPenColour ( System.Windows.Controls.ItemCollection items, SolidColorBrush brush ) : void
updateGif_Delegate ( ) : void

메소드 상세

AddAnimatedGif() 공개 정적인 메소드

Creates an animated gif shape. Do not add a very large number of these or performance may be degraded.
public static AddAnimatedGif ( Primitive imageName, Primitive repeat ) : Primitive
imageName Primitive /// The animated gif file (local or network) to load. ///
repeat Primitive /// Continuously repeat the animation "True" or "False". ///
리턴 Primitive

AddAnimatedImage() 공개 정적인 메소드

Creates an animation from a single image with multiple images on one layer. Do not add a very large number of these or performance may be degraded.
public static AddAnimatedImage ( Primitive imageName, Primitive repeat, Primitive countX, Primitive countY ) : Primitive
imageName Primitive /// The image file (local or network) to load. /// Can also be an ImageList image. ///
repeat Primitive /// Continuously repeat the animation "True" or "False". ///
countX Primitive /// The number of sub-images in the X direction. ///
countY Primitive /// The number of sub-images in the Y direction. ///
리턴 Primitive

AddPolygon() 공개 정적인 메소드

Creates a polygon shape.
public static AddPolygon ( Primitive points ) : Primitive
points Primitive /// An array of coordinates for the polygon corners with the form points[i][1] = x, points[i][2] = y. /// /// The number of points must be 3 or more. ///
리턴 Primitive

AddRegularPolygon() 공개 정적인 메소드

Creates a regular polygon shape.
public static AddRegularPolygon ( Primitive numPoint, Primitive radius ) : Primitive
numPoint Primitive The number of polygon sides.
radius Primitive The centre to corner distance.
리턴 Primitive

AddStar() 공개 정적인 메소드

Creates a star shape. Fun effects can be created with negative distances.
public static AddStar ( Primitive numPoint, Primitive innerRadius, Primitive outerRadius ) : Primitive
numPoint Primitive The number of star points.
innerRadius Primitive The centre to inner points' distance.
outerRadius Primitive The centre to outer points' distance.
리턴 Primitive

AnimateOpacity() 공개 정적인 메소드

Set a shape to animate opacity, flash (fade out and in).
public static AnimateOpacity ( Primitive shapeName, Primitive interval, Primitive count ) : void
shapeName Primitive The shape or control to flash.
interval Primitive The interval in ms for a complete flash cycle. /// A value of 0 will stop the flashing.
count Primitive The number of flashes. /// A value of 0 will flash continuously.
리턴 void

AnimateRotation() 공개 정적인 메소드

Set a shape to animate rotation (rotate continuously).
public static AnimateRotation ( Primitive shapeName, Primitive interval, Primitive count ) : void
shapeName Primitive The shape or control to rotate.
interval Primitive The interval in ms for a complete 360 degree rotation. /// A value of 0 will stop the rotation. /// A value less than 0 will rotate anti-clockwise.
count Primitive The number of rotations. /// A value of 0 will rotate continuously.
리턴 void

AnimateZoom() 공개 정적인 메소드

Set a shape to animate zooming (in and out).
public static AnimateZoom ( Primitive shapeName, Primitive interval, Primitive count, Primitive scaleX, Primitive scaleY ) : void
shapeName Primitive The shape or control to zoom.
interval Primitive The interval in ms for a complete zoom cycle. /// A value of 0 will stop the zooming.
count Primitive The number of zoom cycles. /// A value of 0 will zoom continuously.
scaleX Primitive The X zoom scale factor.
scaleY Primitive The Y zoom scale factor.
리턴 void

AnimationCount() 공개 정적인 메소드

Get the number of images in an animated image.
public static AnimationCount ( Primitive shapeName ) : Primitive
shapeName Primitive /// The animated image shape name. ///
리턴 Primitive

AnimationPause() 공개 정적인 메소드

Pause an animated image. Paused images can still be updated using AnimationSet
public static AnimationPause ( Primitive shapeName ) : void
shapeName Primitive /// The animated image shape name. ///
리턴 void

AnimationResume() 공개 정적인 메소드

Resume a previously paused animated image.
public static AnimationResume ( Primitive shapeName ) : void
shapeName Primitive /// The animated image shape name. ///
리턴 void

AnimationSet() 공개 정적인 메소드

Reset animated image to a selected image.
public static AnimationSet ( Primitive shapeName, Primitive image ) : void
shapeName Primitive /// The animated image shape name. ///
image Primitive /// The selected animated image number (indexed from 1). ///
리턴 void

BrushColour() 공개 정적인 메소드

Set shape Brush colour.
public static BrushColour ( Primitive shapeName, Primitive colour ) : void
shapeName Primitive /// The shape or control name. ///
colour Primitive /// The new brush colour. ///
리턴 void

BrushEllipse() 공개 정적인 메소드

Draw an ellipse filled with a gradient of colours.
public static BrushEllipse ( Primitive brush, Primitive x, Primitive y, Primitive width, Primitive height ) : void
brush Primitive /// A previously created gradient or image brush (LDShapes.BrushGradient LDShapes.BrushImage). ///
x Primitive /// The x co-ordinate of the ellipse. ///
y Primitive /// The y co-ordinate of the ellipse. ///
width Primitive /// The width of the ellipse. ///
height Primitive /// The height of the ellipse. ///
리턴 void

BrushGradient() 공개 정적인 메소드

Create a linear or radial gradient brush.
public static BrushGradient ( Primitive colours, Primitive orientation ) : Primitive
colours Primitive /// An array of colours to apply to the shape in a gradient. ///
orientation Primitive /// The orientation for the gradient. /// "H" horizontal. /// "V" vertical. /// "DU" diagonally up. /// "DD" diagonally down. /// "R" radial (default if "") ///
리턴 Primitive

BrushImage() 공개 정적인 메소드

Create an image brush. These brushes should work anywhere that BrushGradient can be used.
public static BrushImage ( Primitive imageName ) : Primitive
imageName Primitive /// The image to load to the brush. /// Value returned from ImageList.LoadImage or local or network image file. ///
리턴 Primitive

BrushPolygon() 공개 정적인 메소드

Draw a polygon filled with a gradient of colours.
public static BrushPolygon ( Primitive brush, Primitive points ) : void
brush Primitive /// A previously created gradient or image brush (LDShapes.BrushGradient LDShapes.BrushImage). ///
points Primitive /// An array of coordinates for the polygon corners with the form points[i][1] = x, points[i][2] = y. /// /// The number of points must be 3 or more. ///
리턴 void

BrushRectangle() 공개 정적인 메소드

Draw a rectangle filled with a gradient of colours.
public static BrushRectangle ( Primitive brush, Primitive x, Primitive y, Primitive width, Primitive height ) : void
brush Primitive /// A previously created gradient or image brush (LDShapes.BrushGradient LDShapes.BrushImage). ///
x Primitive /// The x co-ordinate of the rectangle. ///
y Primitive /// The y co-ordinate of the rectangle. ///
width Primitive /// The width of the rectangle. ///
height Primitive /// The height of the rectangle. ///
리턴 void

BrushRoundedRectangle() 공개 정적인 메소드

Draw a rounded rectangle filled with a gradient of colours.
public static BrushRoundedRectangle ( Primitive brush, Primitive x, Primitive y, Primitive width, Primitive height, Primitive radius ) : void
brush Primitive /// A previously created gradient or image brush (LDShapes.BrushGradient LDShapes.BrushImage). ///
x Primitive /// The x co-ordinate of the rectangle. ///
y Primitive /// The y co-ordinate of the rectangle. ///
width Primitive /// The width of the rectangle. ///
height Primitive /// The height of the rectangle. ///
radius Primitive /// The radius of the rounded corners. ///
리턴 void

BrushShape() 공개 정적인 메소드

Set a shape Brush style as a gradient of colours.
public static BrushShape ( Primitive shapeName, Primitive brush ) : void
shapeName Primitive /// The shape or control name. ///
brush Primitive /// A previously created gradient or image brush (LDShapes.BrushGradient LDShapes.BrushImage). ///
리턴 void

BrushText() 공개 정적인 메소드

Create a text brush. These brushes should work anywhere that BrushGradient can be used.
public static BrushText ( Primitive text, Primitive background, Primitive foreground ) : Primitive
text Primitive /// The text to add to the brush. /// The current GraphicsWindow font is used. ///
background Primitive /// The background colour. ///
foreground Primitive /// The foreground (pen) colour. ///
리턴 Primitive

Centre() 공개 정적인 메소드

Centre the shape on a point, also works for zoomed shapes.
public static Centre ( Primitive shapeName, Primitive x, Primitive y ) : void
shapeName Primitive /// The shape or control name. ///
x Primitive /// The x coordinate of the centre. ///
y Primitive /// The y coordinate of the centre. ///
리턴 void

FastMove() 공개 정적인 메소드

Moves the shape with the specified name to a new position. This method is maximally optimsed for speed.
public static FastMove ( Primitive shapeName, Primitive x, Primitive y ) : void
shapeName Primitive /// The name of the shape to move. ///
x Primitive /// The x co-ordinate of the new position. ///
y Primitive /// The y co-ordinate of the new position. ///
리턴 void

Font() 공개 정적인 메소드

Set shape Font.
public static Font ( Primitive shapeName, Primitive family, Primitive size, Primitive bold, Primitive italic ) : void
shapeName Primitive /// The shape or control name. ///
family Primitive The new font family name /// See LDUtilities.FontList() for available font families.
size Primitive The new font size.
bold Primitive The new font bold state ("True" or "False").
italic Primitive The new font italic state ("True" or "False").
리턴 void

GetAllShapes() 공개 정적인 메소드

Get an array of all currently created shapes.
public static GetAllShapes ( ) : Primitive
리턴 Primitive

GetAllShapesAt() 공개 정적인 메소드

Get an array of all of the shapes (if any) at the specified coordinates. The coordinates could be the mouse coordinates for example.
public static GetAllShapesAt ( Primitive x, Primitive y ) : Primitive
x Primitive The X coordinate
y Primitive The Y coordinate
리턴 Primitive

GetColour() 공개 정적인 메소드

Get shape Brush and Pen colours.
public static GetColour ( Primitive shapeName ) : Primitive
shapeName Primitive /// The shape or control name. ///
리턴 Primitive

GetLeft() 공개 정적인 메소드

Get the left position of a shape (works for triangles, polygons and lines). Also works for shapes while animating.
public static GetLeft ( Primitive shapeName ) : Primitive
shapeName Primitive /// The shape or control name. ///
리턴 Primitive

GetOpacity() 공개 정적인 메소드

Gets the opacity of a shape.
public static GetOpacity ( Primitive shapeName ) : Primitive
shapeName Primitive /// The name of the shape. ///
리턴 Primitive

GetProperties() 공개 정적인 메소드

Get a list of shape properties. These are .Net UIElement properties.
public static GetProperties ( Primitive shapeName ) : Primitive
shapeName Primitive The shape or control name.
리턴 Primitive

GetProperty() 공개 정적인 메소드

Get a shape property. This is a .Net UIElement property.
public static GetProperty ( Primitive shapeName, Primitive property ) : Primitive
shapeName Primitive The shape or control name.
property Primitive The property name to get.
리턴 Primitive

GetTop() 공개 정적인 메소드

Get the top position of a shape (works for triangles, polygons and lines). Also works for shapes while animating.
public static GetTop ( Primitive shapeName ) : Primitive
shapeName Primitive /// The shape or control name. ///
리턴 Primitive

Height() 공개 정적인 메소드

Get the shape's visible (including zoom) height.
public static Height ( Primitive shapeName ) : Primitive
shapeName Primitive /// The shape or control name. ///
리턴 Primitive

Move() 공개 정적인 메소드

Moves a triangle or polygon top-left position. This method also works for lines (Shapes.AddLine).
public static Move ( Primitive shapeName, Primitive x, Primitive y ) : void
shapeName Primitive /// The shape name (a triangle, polygon or line shape). ///
x Primitive /// The X (left) coordinate for the triangle, polygon or line. ///
y Primitive /// The Y (top) coordinate for the triangle, polygon or line. ///
리턴 void

MoveLine() 공개 정적인 메소드

Moves a line shape.
public static MoveLine ( Primitive shapeName, Primitive x1, Primitive y1, Primitive x2, Primitive y2 ) : void
shapeName Primitive /// The shape name (a line created with Shapes.AddLine). ///
x1 Primitive /// The first X coordinate to move the line to. ///
y1 Primitive /// The first Y coordinate to move the line to. ///
x2 Primitive /// The second X coordinate to move the line to. ///
y2 Primitive /// The second Y coordinate to move the line to. ///
리턴 void

MovePolygon() 공개 정적인 메소드

Moves a polygon shape.
public static MovePolygon ( Primitive shapeName, Primitive points ) : void
shapeName Primitive /// The shape name (a polygon created with LDShapes.AddPolygon). ///
points Primitive /// An array of new coordinates for the polygon corners with the form points[i][1] = x, points[i][2] = y. /// /// The number of points must be 3 or more and can change with each call. ///
리턴 void

MoveTriangle() 공개 정적인 메소드

Moves a triangle shape.
public static MoveTriangle ( Primitive shapeName, Primitive x1, Primitive y1, Primitive x2, Primitive y2, Primitive x3, Primitive y3 ) : void
shapeName Primitive /// The shape name (a triangle created with Shapes.AddTriangle). ///
x1 Primitive /// The first X coordinate to move the triangle to. ///
y1 Primitive /// The first Y coordinate to move the triangle to. ///
x2 Primitive /// The second X coordinate to move the triangle to. ///
y2 Primitive /// The second Y coordinate to move the triangle to. ///
x3 Primitive /// The third X coordinate to move the triangle to. ///
y3 Primitive /// The third Y coordinate to move the triangle to. ///
리턴 void

Overlap() 공개 정적인 메소드

Checks for shape overlap (collision detection for any ellipse or rectangle shape types). The first shape should be unZoomed and unRotated.
public static Overlap ( Primitive shape1, Primitive shape2 ) : Primitive
shape1 Primitive /// The first shape name. ///
shape2 Primitive /// The second shape name. ///
리턴 Primitive

OverlapBox() 공개 정적인 메소드

Checks for shape overlap of bounding boxes (collision detection).
public static OverlapBox ( Primitive shape1, Primitive shape2 ) : Primitive
shape1 Primitive /// The first shape name. ///
shape2 Primitive /// The second shape name. ///
리턴 Primitive

OverlapCircle() 공개 정적인 메소드

Checks for shape overlap of bounding circles (collision detection).
public static OverlapCircle ( Primitive shape1, Primitive shape2 ) : Primitive
shape1 Primitive /// The first shape name. ///
shape2 Primitive /// The second shape name. ///
리턴 Primitive

PenColour() 공개 정적인 메소드

Set shape Pen colour.
public static PenColour ( Primitive shapeName, Primitive colour ) : void
shapeName Primitive /// The shape or control name. ///
colour Primitive /// The new pen colour. ///
리턴 void

PenStyle() 공개 정적인 메소드

Set shape Pen style (dash, dot etc).
public static PenStyle ( Primitive shapeName, Primitive dash, Primitive space ) : void
shapeName Primitive /// The shape name. ///
dash Primitive /// The dash length. ///
space Primitive /// The space length. ///
리턴 void

PenWidth() 공개 정적인 메소드

Set shape Pen width.
public static PenWidth ( Primitive shapeName, Primitive width ) : void
shapeName Primitive /// The shape or control name. ///
width Primitive /// The new pen width. ///
리턴 void

RasteriseTurtleLines() 공개 정적인 메소드

Rasterise all turtle trail lines. When the number of turtle trails is large the program may slow due to the number of line shapes (trails) present. This converts the turtle trails from line shapes to background drawings.
public static RasteriseTurtleLines ( ) : void
리턴 void

ReSize() 공개 정적인 메소드

Resize shape width and height (an absolute version of zoom).
public static ReSize ( Primitive shapeName, Primitive width, Primitive height ) : void
shapeName Primitive /// The shape or control name. ///
width Primitive /// The shape width. ///
height Primitive /// The shape height. ///
리턴 void

RemoveTurtleLines() 공개 정적인 메소드

Remove all turtle trail lines.
public static RemoveTurtleLines ( ) : void
리턴 void

ResetTurtle() 공개 정적인 메소드

Reset the Turtle after a GraphicsWindow.Clear().
public static ResetTurtle ( ) : void
리턴 void

RotateAbout() 공개 정적인 메소드

Rotate a shape about a point.
public static RotateAbout ( Primitive shapeName, Primitive x, Primitive y, Primitive angle ) : void
shapeName Primitive /// The shape name. ///
x Primitive /// The X coordinate to rotate the shape about. ///
y Primitive /// The Y coordinate to rotate the shape about. ///
angle Primitive /// The angle in degrees to rotate the shape. ///
리턴 void

SetImage() 공개 정적인 메소드

Set or change an image in a button or image shape.
public static SetImage ( Primitive shapeName, Primitive imageName ) : void
shapeName Primitive /// The image or button name. ///
imageName Primitive /// The image to load. /// Value returned from ImageList.LoadImage or local or network image file. ///
리턴 void

SetProperty() 공개 정적인 메소드

Set a shape property. This is a .Net UIElement property.
public static SetProperty ( Primitive shapeName, Primitive property, Primitive value ) : void
shapeName Primitive The shape or control name.
property Primitive The property name to set.
value Primitive The value to set the property to.
리턴 void

SetShapeEvent() 공개 정적인 메소드

Register a shape to record mouse events: MouseDown, MouseUp, MouseEnter, MouseLeave, GotFocus and LostFocus.
public static SetShapeEvent ( Primitive shapeName ) : void
shapeName Primitive The shape or control to add.
리턴 void

SetSize() 공개 정적인 메소드

Reset the size of a shape as if it was created with the new size. The position (top left point) is unchanged.
public static SetSize ( Primitive shapeName, Primitive width, Primitive height ) : void
shapeName Primitive /// The shape or control name. ///
width Primitive /// The shape width. ///
height Primitive /// The shape height. ///
리턴 void

SetTurtleImage() 공개 정적인 메소드

Set the turtle to an image.
public static SetTurtleImage ( Primitive imageName, Primitive size ) : void
imageName Primitive /// The image to load for the turtle. /// Value returned from ImageList.LoadImage or local or network image file. ///
size Primitive /// The size to scale the turtle to (default turtle is 16). ///
리턴 void

Skew() 공개 정적인 메소드

Skews the shape with the specified name by the specified angles.
public static Skew ( Primitive shapeName, Primitive angleX, Primitive angleY ) : void
shapeName Primitive /// The name of the shape to skew. ///
angleX Primitive /// The angle to skew the shape in the X direction. ///
angleY Primitive /// The angle to skew the shape in the Y direction. ///
리턴 void

Width() 공개 정적인 메소드

Get the shape's visible (including zoom) width.
public static Width ( Primitive shapeName ) : Primitive
shapeName Primitive /// The shape or control name. ///
리턴 Primitive

ZIndex() 공개 정적인 메소드

Set shape z index (layer position negative are background and positive are foreground - default 0).
public static ZIndex ( Primitive shapeName, Primitive z_index ) : void
shapeName Primitive /// The shape or control name. ///
z_index Primitive /// The z-index (zero, positive or negative interger). ///
리턴 void

ZoomAll() 공개 정적인 메소드

Zoom all shapes.
public static ZoomAll ( Primitive scaleX, Primitive scaleY ) : void
scaleX Primitive The x-axis zoom level.
scaleY Primitive The y-axis zoom level.
리턴 void

프로퍼티 상세

brushes 공개적으로 정적으로 프로퍼티

public static List brushes
리턴 List