Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BitmapDataLayout

Determines the type and format of data that is stored in the image buffer.

version

1.1

Hierarchy

  • BitmapDataLayout

Implements

  • Serializable

Index

Constructors

constructor

  • new BitmapDataLayout(pixelFormat: PixelFormat, pixelWidth: number, pixelHeight: number, dpiX?: number, dpiY?: number, stride?: number): BitmapDataLayout
  • Initializes a new instance of the BitmapDataLayout class.

    Parameters

    • pixelFormat: PixelFormat
    • pixelWidth: number
    • pixelHeight: number
    • Optional dpiX: number
    • Optional dpiY: number
    • Optional stride: number

    Returns BitmapDataLayout

Properties

dpiX

dpiX: number

Gets or sets the dots per inch in x-direction.

dpiY

dpiY: number

Gets or sets the dots per inch in Y-direction.

pixelFormat

pixelFormat: PixelFormat

Gets or sets the pixel format.

pixelHeight

pixelHeight: number

Gets or sets the pixel height.

pixelWidth

pixelWidth: number

Gets or sets the pixel width.

stride

stride: number

Gets or sets the byte-length of an image line. This is usually equal to pixelWidth * bytesPerPixel.

Methods

Private serialize

  • serialize(target: BufferWriter): void
  • Parameters

    • target: BufferWriter

    Returns void

Static Private getBytesPerPixel

  • Parameters

    Returns number

Generated using TypeDoc