Search Results for

    Show / Hide Table of Contents

    Class WinFormsImage

    IImage implementation of a in the

    System.Drawing
    namespace.

    Inheritance
    Object
    ImageBase<Bitmap>
    ImageDisposableBase<Bitmap>
    WinFormsImage
    Implements
    IImage
    IDisposable
    Inherited Members
    ImageDisposableBase<Bitmap>.Dispose(Boolean)
    ImageBase<Bitmap>.width
    ImageBase<Bitmap>.height
    ImageBase<Bitmap>.pixels
    ImageBase<Bitmap>.image
    ImageBase<Bitmap>.disposed
    ImageBase<Bitmap>.Pixels
    ImageBase<Bitmap>.DrawGraphics(IEnumerable<IGraphic>)
    ImageBase<Bitmap>.Dispose()
    ImageBase<Bitmap>.ToBytes(Int32, Int32, Int32, Boolean, Boolean, Int32, Int32[])
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Dicom.Imaging
    Assembly: cs.temp.dll.dll
    Syntax
    public sealed class WinFormsImage : ImageDisposableBase<Bitmap>, IImage, IDisposable

    Constructors

    WinFormsImage(Int32, Int32)

    Initializes an instance of the WinFormsImage object.

    Declaration
    public WinFormsImage(int width, int height)
    Parameters
    Type Name Description
    Int32 width

    Image width.

    Int32 height

    Image height.

    Methods

    As<T>()

    Cast IImage object to specific (real image) type. The returned bitmap will be disposed when the IImage is disposed.

    Declaration
    [Obsolete("do NOT invoke this method directly, use extention methods GetClonedBitmap, GetSharedBitmap, GetClonedWriteableBitmap instead.")]
    public override T As<T>()
    Returns
    Type Description
    T

    IImage object as specific (real image) type.

    Type Parameters
    Name Description
    T

    Real image type to cast to.

    Overrides
    Dicom.Imaging.ImageBase<Bitmap>.As<T>()
    Remarks

    overridden only for obsolete warning

    Clone()

    Creates a deep copy of the image.

    Declaration
    public override IImage Clone()
    Returns
    Type Description
    IImage

    Deep copy of this image.

    Overrides
    Dicom.Imaging.ImageBase<Bitmap>.Clone()

    DrawGraphics(IEnumerable<IGraphic>)

    Declaration
    public override void DrawGraphics(IEnumerable<IGraphic> graphics)
    Parameters
    Type Name Description
    IEnumerable<IGraphic> graphics

    Render(Int32, Boolean, Boolean, Int32)

    Renders the image given the specified parameters.

    Declaration
    public override void Render(int components, bool flipX, bool flipY, int rotation)
    Parameters
    Type Name Description
    Int32 components

    Number of components.

    Boolean flipX

    Flip image in X direction?

    Boolean flipY

    Flip image in Y direction?

    Int32 rotation

    Image rotation.

    Overrides
    Dicom.Imaging.ImageBase<Bitmap>.Render(System.Int32, System.Boolean, System.Boolean, System.Int32)

    Implements

    IImage
    System.IDisposable
    In This Article
    Back to top Copyright (c) 2012-2021 fo-dicom contributors