Click or drag to resize

DwgDecoder Class

The DwgDecoder provides the ability to rasterize AutoCAD DWG files
Inheritance Hierarchy
SystemObject
  Atalasoft.Imaging.CodecImageDecoder
    Atalasoft.Imaging.CodecMultiFramedImageDecoder
      Atalasoft.Imaging.Codec.CadCamDwgDecoder

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

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
Gets or sets zoom factor.
Public propertyZoomPoint
Sets or gets the point from which zooming should be done on the image.
Top
Methods
  NameDescription
Public methodDispose
Releases all resources used by the DwgDecoder
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the DwgDecoder and optionally releases the managed resources
Public methodCode exampleDistill
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.)
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).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
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.)
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