Class DisplayImage2
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
The picture of an IMAGE: the file it shows laid on the parallelogram of its corner and its two sides, clipped by its boundary. A picture of 40 by 30 pixels placed at (10, 20) with a pixel 0.25 across is the parallelogram from (10, 20) along (10, 0) and (0, 7.5). It is never picked by a point: the frame drawn as its own item is, as AutoCAD picks an image by its frame; a window or a crossing takes it by its box.
public sealed class DisplayImage2 : DisplayItem2
- Inheritance
-
DisplayImage2
- Inherited Members
Constructors
- DisplayImage2(double, double, double, double, double, double, IReadOnlyList<double[]>, bool, string, string, DisplayStyle, string, string)
Makes the picture of an image.
Properties
- Bounds
Gets the box that holds the item.
- Brightness
Gets the brightness of the picture, 0 to 100, 50 as it is.
- Clip
Gets the rings the picture is clipped by, each as X and Y in turn; null where it shows the whole picture.
- Contrast
Gets the contrast of the picture, 0 to 100, 50 as it is.
- Fade
Gets how far the picture is faded into the background, 0 to 100, 0 not at all.
- FileName
Gets the path the drawing names the picture by.
- FilePath
Gets the full path of the picture file found; null where none was found or the picture is unloaded.
- FileStamp
Gets the time the picture file was last written, in ticks, when the item was made, so that a picture changed on disk is read again; nought for none.
- IsBitonal
Gets whether the picture is bitonal, one bit a pixel as a scanned drawing is: its dark pixels are then drawn in the colour of the image object and its light ones are the background, which transparency lets what is under it show.
- IsClipInverted
Gets whether the picture shows what lies outside its rings rather than inside.
- IsDraft
Gets whether the picture is drawn with the quality Draft, each pixel a square, rather than High, the pixels blended where the picture is scaled (the drawing's IMAGEQUALITY).
- IsMonochrome
Gets whether a plot draws the picture in black and white, as the plot quality Monochrome of an OLE frame says.
- IsPickedInside
Gets whether a point on the picture picks it, as it does for an OLE frame; an IMAGE is picked by its frame alone.
- IsTransparent
Gets whether the picture's transparent pixels let what is under it show (the IMAGE's transparency on).
- Picture
Gets the bytes of the bitmap file the picture of an OLE frame is, which the renderer decodes in place of a file; null for the picture of an IMAGE, which is read from FilePath.
- PictureKey
Gets what tells the bytes of Picture from any others, so that a picture is decoded once however many drawings hold it.
- Ux
Gets the X of the side along the picture's width.
- Uy
Gets the Y of the side along the picture's width.
- Vx
Gets the X of the side up the picture's height.
- Vy
Gets the Y of the side up the picture's height.
- X
Gets the X of the corner the picture's lower left pixel sits at.
- Y
Gets the Y of that corner.
Methods
- DistanceTo(double, double)
Gets the distance from a point to the picture: infinite for an IMAGE, which is picked by its frame, never by a point on it; for an OLE frame, nought on the picture and infinite off it.