SharpVectors.Rendering.Gdi
This represents an SVG picture box control for displaying GDI+ rendered SVG images.
This is similar to the Windows picture box control for displaying an image.
Controls how the image is placed within our bounds, or how we are sized to fit said image.
The type of border this control will have.
Initializes a new instance of the class.
Clean up any resources being used.
An event that occurs when there is an alert message to be displayed.
Handle this to display a customized message box or prevent the display of the alert.
An event that occurs when there is an error message to be displayed.
Handle this to display a customized message box or prevent the display of the error.
Indicates the border style for the control.
An enumeration of the type specifying the border style.
Gets or sets a value indicating how the rendered image is displayed.
An enumeration of the type specifying the size mode.
Gets or sets the application title. This is used for message dialog titles.
A string specifying the application title.
Gets or sets the source URL for the SVG contents.
A string specifying the path of the SVG contents.
Gets or sets the source URL for the SVG contents.
An specifying the path of the SVG contents.
Gets or sets the SVG contents.
A string containing the SVG contents.
Gets the current SVG window implementation or used by this control
An SVG window interface, .
Gets A rectangle that represents the invalidated region of the control.
A that represents the invalidated region.
Gets or sets the foreground color of the control.
The foreground of the control.
The default is the value of the property.
Gets or sets the font of the text displayed by the control.
The to apply to the text displayed by the control.
The default is the value of the property.
Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left languages.
One of the values.
Gets or sets the text of this control.
The text of the .
Deriving classes can override this to configure a default size for their control.
This is more efficient than setting the size in the control's constructor.
The default Size of the control. The default size is 200 pixel square.
Gets the default Input Method Editor (IME) mode supported by the control.
This is one of the values, and it is set to .
Returns the parameters needed to create the handle.
Loads and renders the SVG contents specified by the file path.
A specifying the path of the SVG contents.
Loads and renders asynchronously the SVG contents specified by the file path.
A specifying the path of the SVG contents.
Loads and renders the SVG contents.
A specifying the SVG contents.
Loads and renders the SVG contents specified by the URI.
A specifying the path of the SVG contents.
Loads and renders the SVG contents in the specified stream.
A stream containing the SVG contents.
Clears both the SVG document content and the rendered drawings.
Returns a string representation for this control.
Create an empty SvgDocument and GdiRenderer for this control.
The empty SvgDocument is returned. This method is needed only in situations
where the library user needs to create an SVG DOM tree outside of the usual window Src setting mechanism.
Loads the default user and agent stylesheets into the current SvgDocument
If the has the property set to
, adjust the size to hold the rendered image.
Required designer variable.
Required method for Designer support - do not modify
the contents of this method with the code editor.
A GDI Color representation of the RgbColor
This converts the specified structure to a
structure.
The structure to convert.
The structure that is converted from the
specified structure.
Gets or sets a value to indicate turning off viewbox at the root of the drawing.
For image outputs, this will force the original size to be saved.
The default value is .
There are reported cases where are diagrams displayed in Inkscape program, but will not
show when converted. These are diagrams on the drawing canvas of Inkspace but outside
the svg viewbox.
When converted the drawings are also converted but not displayed due to
clipping. Setting this property to will clear the clipping region
on conversion.
Gets or sets a value to indicate preserving the original viewbox size when saving images.
For image outputs, this will force the original size to be saved.
The default value is . However, the ImageSvgConverter converted
sets this to by default.
Setting this to will cause the rendering process to draw a transparent
box around the output, if a viewbox is defined. This will ensure that the original image
size is saved.
Gets or sets a value to indicate applying a translate transform to the viewbox to ensure
it is visible when rendered.
This determines whether a transformation is applied to the rendered drawing. For drawings
where the top-left position of the viewbox is off the screen, due to negative values, this
will ensure the drawing is visible.
The default value is . Set this value to if
you wish to apply your own transformations to the drawings.
Gets or sets the main culture information used for rendering texts.
An instance of the specifying the main
culture information for texts. The default is the English culture.
The library does not currently provide any means of splitting texts
into its multi-language parts.
Gets the neutral language for text rendering.
An instance of the specifying the neutral
culture information for texts. The default is the English culture.
For vertical text rendering, there is a basic text splitting into
Western and other languages. This culture information is used to
render the Western language part, and the mains culture information
for the other languages.
Gets or sets the default font family name, which is used when a text
node does not specify a font family name.
A string containing the default font family name. The default is
the Arial Unicode MS font, for its support of Unicode texts.
This value cannot be or empty.
Gets or sets the globally available default font family.
An instance of the specifying the globally available font family.
The default is Arial font (since Arial Unicode MS is no longer shipped by MS).
family.
Gets or set the globally available generic serif font family.
An instance of specifying the generic serif
font family. The default is Times New Roman font family.
Gets or set the globally available generic sans serif font family.
An instance of specifying the generic sans
serif font family. The default is Tahoma font family.
The possible font names are Tahoma, Arial,
Verdana, Trebuchet, MS Sans Serif and Helvetica.
Gets or set the globally available generic Monospace font family.
An instance of specifying the generic
Monospace font family. The default is MS Gothic font family.
Provides a set of static predefined GdiFontStyles values.
Specifies a normal GdiFontStyles.
Specifies an oblique GdiFontStyles.
Specifies an italic GdiFontStyles.
Provides a set of static predefined FontWeight values.
Specifies a "Thin" font weight.
Specifies an "Extra-light" font weight.
Specifies an "Ultra-light" font weight.
Specifies a "Light" font weight.
Specifies a "Normal" font weight.
Specifies a "Regular" font weight.
Specifies a "Medium" font weight.
Specifies a "Demi-bold" font weight.
Specifies a "Semi-bold" font weight.
Specifies a "Bold" font weight.
Specifies an "Extra-bold" font weight.
Specifies an "Ultra-bold" font weight.
Specifies a "Black" font weight.
Specifies a "Heavy" font weight.
Specifies an "Extra-black" font weight.
Specifies an "Ultra-black" font weight.
Provides a set of static predefined GdiFontStretches values.
Specifies an ultra-condensed GdiFontStretches.
Specifies an extra-condensed GdiFontStretches.
Specifies a condensed GdiFontStretches.
Specifies a semi-condensed GdiFontStretches.
Specifies a normal GdiFontStretches.
Specifies a medium GdiFontStretches.
Specifies a semi-expanded GdiFontStretches.
Specifies an expanded GdiFontStretches.
Specifies an extra-expanded GdiFontStretches.
Specifies an ultra-expanded GdiFontStretches.
Summary description for PaintServer.
Describes the location and color of a transition point in a gradient.
Initializes a new instance of the class.
Initializes a new instance of the class with
the specified color and offset.
The color value of the gradient stop.
The location in the gradient where the gradient stop is placed.
Gets or sets the color of the gradient stop.
The color of the gradient stop. The default value is .
Gets or set the location of the gradient stop within the gradient vector.
The relative location of this gradient stop along the gradient vector.
The default value is 0.0.
Creates a modifiable clone of this , making
deep copies of this object's values.
A modifiable clone of the current object.
Creates a string representation of this object based on the current culture.
A string representation of this object that contains its
and values.
Renders a Svg image to GDI+
The bitmap containing the rendered Svg image.
The renderer's graphics wrapper object.
The renderer's back color.
The renderer's SvgWindow object.
Initializes a new instance of the GdiRenderer class.
Gets a bitmap image of the a rendered Svg document.
Gets or sets the Window of the
renderer.
The Window of the renderer.
Gets or sets the back color of the renderer.
The back color of the renderer.
Gets or sets the GdiGraphics
object associated with this renderer.
The GdiGraphics object
associated with this renderer.
The invalidated region
Renders the SvgElement.
The SvgElement node to be
rendered
The bitmap on which the rendering was performed.
Renders the SvgDocument.
The SvgDocument node to be
rendered
The bitmap on which the rendering was performed.
Processes mouse events.
A string describing the type of mouse event that occured.
The MouseEventArgs that contains
the event data.
BeforeRender - Make sure we have a Graphics object to render to.
If we don't have one, then create one to match the SvgWindow's
physical dimensions.
AfterRender - Dispose of Graphics object created for rendering.
Returns the topmost object of a hit test by specifying a Point.
The X-value of the point to hit test against.
The Y-value of the point to hit test against.
The hit test result of the renderer, returned as a type.
Returns the topmost object of a hit test by specifying a Point.
The point value to hit test against.
The hit test result of the renderer, returned as a type.
Returns the topmost object of a hit test by specifying a Point.
The X-value of the point to hit test against.
The Y-value of the point to hit test against.
The hit test result of the renderer, returned as a type.
The point value to hit test against.
Gets the SVG object that was hit.
Summary description for GdiImageRendering.
Generates a new GdiRendering that
corresponds to the given Uri.
The base Uri.
The url.
The generated GdiRendering that
corresponds to the given Uri.
Defines the interface required for a rendering node to interact with the renderer and the SVG DOM
Summary description for .
Summary description for .
Summary description for .
Wraps a Graphics object since it's sealed
Wraps a GraphicsContainer because it is sealed.
This is a helper for GraphicsWrapper so that it can save
multiple container states. It holds the containers
for both the idMapGraphics and the main graphics
being rendered in the GraphicsWrapper.
Wraps a GraphicsContainer because it is sealed.
This is a helper for GraphicsWrapper so that it can save
multiple container states. It holds the containers
for both the idMapGraphics and the main graphics
being rendered in the GraphicsWrapper.
Wraps a Graphics object since it's sealed
Wraps a GraphicsContainer because it is sealed.
This is a helper for GraphicsWrapper so that it can save
multiple container states. It holds the containers
for both the idMapGraphics and the main graphics
being rendered in the GraphicsWrapper.
A counter that tracks the next hit color.
Maps a 'hit color' to a graphics node.
The 'hit color' is an integer identifier that identifies the graphics node that drew it.
When 'hit colors' are drawn onto a bitmap (ie. id-mapppe raster
the 'hit color' of each pixel with the help of color map
can identify for a given x, y coordinate the relevant graphics node a mouse event should be dispatched to.
A bitmap image that consists of 'hit color' instead of visual color. A 'hit color' is an
integer identifier that identifies the graphics node that drew it. A 'hit color' can
therefore identify the graphics node that corresponds an x-y coordinates.
Gets the image map of the rendered Svg document. This
is a picture of how the renderer will map the (x,y) positions
of mouse events to objects. You can display this raster
to help in debugging of hit testing.
Returns the topmost object of a hit test by specifying a Point.
The X-value of the point to hit test against.
The Y-value of the point to hit test against.
The hit test result of the renderer, returned as a type.
Allocate a hit color for the specified graphics node.
The SvgElement object for which to
allocate a new hit color.
The hit color for the SvgElement
object.
Gets the SvgElement object that
corresponds to the given hit color.
The hit color for which to get the corresponding
SvgElement object.
Returns null if a corresponding
SvgElement object cannot be
found for the given hit color.
The SvgElement object that
corresponds to the given hit color
TODO: This method is not used.