Freigeben über


ImageShapeGeometry Class

Definition

Encapsulates drawing, folding, and hit testing a shape based on an external image on the design surface

public ref class ImageShapeGeometry : Microsoft::VisualStudio::Modeling::Diagrams::RectangleShapeGeometry
public class ImageShapeGeometry : Microsoft.VisualStudio.Modeling.Diagrams.RectangleShapeGeometry
type ImageShapeGeometry = class
    inherit RectangleShapeGeometry
Public Class ImageShapeGeometry
Inherits RectangleShapeGeometry
Inheritance

Constructors

ImageShapeGeometry(Image)

Initializes a new instance of the MetafileShapeGeometry class from an Image

ImageShapeGeometry(String)

Initializes a new instance of the MetafileShapeGeometry class from a direct path to an image

Properties

Image
Radius

Gets the radius of the rounded corners in world units.

(Inherited from RoundedRectangleShapeGeometry)
ShadowOffset

Gets the shadow offset in world units.

(Inherited from ShapeGeometry)
UninitializedPath

get/set the graphics path This is a singleton on the geometry class. Do not dispose. Use immediately. Use GetPathCopy if another path is needed!

(Inherited from ShapeGeometry)

Methods

Contains(IGeometryHost, PointD, DiagramHitTestInfo)

Gets a value indicating whether the point is within the geometry outline. The geometry outline is defined by the graphics path used to draw the geometry.

(Inherited from NodeShapeGeometry)
Dispose() (Inherited from ShapeGeometry)
Dispose(Boolean) (Inherited from ShapeGeometry)
DoFoldToShape(IGeometryHost, PointD, PointD)

Calculates the point along the vector which crosses the outline of the geometry.

(Inherited from RectangleShapeGeometry)
DoHitTest(IGeometryHost, PointD, DiagramHitTestInfo, Boolean)

Returns a value indicating whether the given point is within the boundary of the geometry. The hit test results are also returned.

(Inherited from RectangleShapeGeometry)
DoHitTest(IGeometryHost, PointD, DiagramHitTestInfo)

Returns a value indicating whether the given point is within the boundary of the geometry. The hit test results are also returned.

(Inherited from ShapeGeometry)
DoHitTestSelection(IGeometryHost, PointD, DiagramHitTestInfo)

Returns a value indicating whether the given point is within the boundary of the geometry's surrounding selection feedback. The hit test results are also returned.

(Inherited from NodeShapeGeometry)
DoPaint(DiagramPaintEventArgs, IGeometryHost)

Draws the geometry and its shadow if it has one.

(Inherited from ShapeGeometry)
DoPaintEmphasis(DiagramPaintEventArgs, IGeometryHost)

Draws visual emphasis on the shape. This does not indicate selection, it only draws the user's attention to this shape when another shape is selected. (See ShapeElement.RelatedShapeToEmphasize.)

(Inherited from NodeShapeGeometry)
DoPaintGeometry(DiagramPaintEventArgs, IGeometryHost)

Paint the image shape

DoPaintResizeFeedback(DiagramPaintEventArgs, IGeometryHost, RectangleD)

Draws the resize feedback for the geometry.

(Inherited from NodeShapeGeometry)
DoPaintSelection(DiagramPaintEventArgs, IGeometryHost, Boolean, Boolean, Boolean)

Draws a selection typically surrounding the geometry.

(Inherited from NodeShapeGeometry)
DoPaintShadow(DiagramPaintEventArgs, IGeometryHost)

Draws the geometry's shadow.

(Inherited from ShapeGeometry)
GetBackgroundBrushId(IGeometryHost)

Returns the background brush id to use for drawing the geometry's background.

(Inherited from ShapeGeometry)
GetExtraPenWidth(IGeometryHost)

Gets the portion of the pen width which draws outside the borders of the geometry; i.e., outside the graphics path used to draw the geometry.

(Inherited from ShapeGeometry)
GetFocusIndicatorInsideMargin(IGeometryHost)

Gets the distance in world units from the bounding box of the shape to the focus indicator drawn within the shape's bounding box.

(Inherited from NodeShapeGeometry)
GetOutlinePenId(IGeometryHost)

Returns the outline pen id to use for drawing the geometry's outline.

(Inherited from ShapeGeometry)
GetPath(IGeometryHost)

Gets the GraphicsPath of the geometry in world units relative to the top-left of the IGeometryHost's parent. This is a singleton on the geometry class. Do not dispose. Use immediately. Use GetPathCopy if another path is needed!

(Inherited from ShapeGeometry)
GetPath(RectangleD)

Gets the GraphicsPath of the geometry. This is a singleton on the geometry class. Do not dispose. Use immediately. Use GetPathCopy if another path is needed!

(Inherited from RoundedRectangleShapeGeometry)
GetPathCopy(IGeometryHost)

Gets an unique copy of the path. Caller is resposible for disposal.

(Inherited from ShapeGeometry)
GetPerimeter(IGeometryHost)

Gets the graphics path which encompasses the geometry outline, including the thickness of the outline pen that lies outside of the graphics path used to draw the geometry. This is a singleton on the geometry class. Do not dispose. Use immediately. Use GetPathCopy if another path is needed!

(Inherited from ShapeGeometry)
GetPerimeterBoundingBox(IGeometryHost)

Gets the rectangular bounds which encompasses the geometry outline, including the thickness of the outline pen that lies outside of the graphics path used to draw the geometry.

(Inherited from ShapeGeometry)
GetSelectionLineOffset(DiagramClientView)

Returns the distance in world units between the visible selection line and the outside of the shape.

(Inherited from ShapeGeometry)
GetSelectionLineWidth(DiagramClientView)

Returns the width of the visible selection line in world units.

(Inherited from ShapeGeometry)
HasFilledBackground(IGeometryHost)

Returns a value indicating whether the background of the geometry will be filled.

(Inherited from ShapeGeometry)
HasOutline(IGeometryHost)

Returns a value indicating whether the outline of the geometry will be drawn.

(Inherited from ShapeGeometry)
HasShadow(IGeometryHost)

Returns a value indicating whether the geometry has a shadow.

(Inherited from ShapeGeometry)

Applies to