Click or drag to resize

DwgDecoder Class

The DwgDecoder provides the ability to rasterize AutoCAD DWG files
Inheritance Hierarchy

Namespace:  Atalasoft.Imaging.Codec.CadCam
Assembly:  Atalasoft.dotImage.Dwg (in Atalasoft.dotImage.Dwg.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public class DwgDecoder : MultiFramedImageDecoder

The DwgDecoder type exposes the following members.

Constructors
  NameDescription
Public methodDwgDecoder
Constructs a new DwgDecoder object.
Top
Properties
  NameDescription
Public propertyBackgroundColor
Sets or gets the background color that will be used for a given drawing
Public propertyDefaultSize
Sets or gets the default page size in inches.
Public propertyFitToPage
Sets or gets how the drawing is fit to the page.
Public propertyOutsidePageSize
Sets or gets the size of resulting images in pixels
Public propertyResolution
Sets or gets the resolution of resulting images.
Public propertySupportedImageType Obsolete.
Returns the ImageType that the implemented decoder class supports.
(Inherited from ImageDecoder.)
Public propertyUseOutsidePageSize
Sets or gets a flag indicating whether or not the files page size should be overridden.
Public propertyZoom
Public propertyZoomPoint
Sets or gets the point from which zooming should be done on the image.
Top
Methods
  NameDescription
Public methodDistill
Scans through a document, extracts the geometry with each page, and optionally reduces it to primitives.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGetDefaultResolution
Returns the default resolution used for rasterization.
Public methodGetFrameCount
Returns the number of conceptual frames in a DWG file.
(Overrides MultiFramedImageDecoderGetFrameCount(Stream).)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetImageInfo(Stream)
Returns information about an image in the file.
(Overrides ImageDecoderGetImageInfo(Stream).)
Public methodGetImageInfo(Stream, Int32)
Returns information about an image in the file.
(Overrides MultiFramedImageDecoderGetImageInfo(Stream, Int32).)
Protected methodGetPageInfo
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodImageSizeFromPaperSize
Calculates the size of an image in pixels given paper size for the image.
Protected methodStatic memberInitializeOpenDwg
Initializes the OpenDwg library
Public methodIsValidFormat
Checks to see if a stream contains a DWG image.
(Overrides ImageDecoderIsValidFormat(Stream).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNormalizedPaperSize
Public methodRead(Stream, ProgressEventHandler)
Reads an image from a stream.
(Overrides ImageDecoderRead(Stream, ProgressEventHandler).)
Public methodRead(Stream, Int32, ProgressEventHandler)
Reads an image from a stream.
(Overrides MultiFramedImageDecoderRead(Stream, Int32, ProgressEventHandler).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberMAXRESOLUTION
A constant representing the maximum resolution for rasterizing an image.
Public fieldStatic memberMINRESOLUTION
A constant representing the minimum resolution for rasterizing an image.
Top
See Also