편집

다음을 통해 공유


SKImageInfo Struct

Definition

Describe an image's dimensions and pixel type.

public struct SKImageInfo
public struct SKImageInfo : IEquatable<SkiaSharp.SKImageInfo>
Inheritance
SKImageInfo
Implements

Constructors

SKImageInfo(Int32, Int32, SKColorType, SKAlphaType, SKColorSpace)

Creates a new SKImageInfo with the specified width, height, color type, transparency type and color space.

SKImageInfo(Int32, Int32, SKColorType, SKAlphaType)

Creates a new SKImageInfo with the specified width, height, color type and transparency type.

SKImageInfo(Int32, Int32, SKColorType)

Creates a new SKImageInfo with the specified width, height and color type.

SKImageInfo(Int32, Int32)

Creates a new SKImageInfo with the specified width and height.

Fields

Empty

An empty SKImageInfo.

PlatformColorAlphaShift

The number of bits to shift left for the alpha color component.

PlatformColorBlueShift

The number of bits to shift left for the blue color component.

PlatformColorGreenShift

The number of bits to shift left for the green color component.

PlatformColorRedShift

The number of bits to shift left for the red color component.

PlatformColorType

The current 32-bit color for the current platform.

Properties

AlphaType

Gets the transparency type for the image info.

BitsPerPixel

Gets the number of bits used per pixel.

BytesPerPixel

Gets the number of bytes used per pixel.

BytesSize

Gets the total number of bytes needed to store the bitmap data.

BytesSize64

Gets the total number of bytes needed to store the bitmap data as a 64-bit integer.

ColorSpace

Gets or sets the color space.

ColorType

Gets or sets the color type.

Height

Gets or sets the height.

IsEmpty

Gets a value indicating whether the width or height are less or equal than zero.

IsOpaque

Gets a value indicating whether the configured alpha type is opaque.

Rect

Gets a rectangle with the current width and height.

RowBytes

Gets the number of bytes per row.

RowBytes64

Gets the number of bytes per row as a 64-bit integer.

Size

Gets the current size of the image.

Width

Gets or sets the width.

Methods

Equals(Object)
Equals(SKImageInfo)
GetHashCode()
WithAlphaType(SKAlphaType)

Creates a new SKImageInfo with the same properties as this SKImageInfo, but with the specified transparency type.

WithColorSpace(SKColorSpace)

Creates a new SKImageInfo with the same properties as this SKImageInfo, but with the specified color space.

WithColorType(SKColorType)

Creates a new SKImageInfo with the same properties as this SKImageInfo, but with the specified color type.

WithSize(Int32, Int32)

Creates a new SKImageInfo with the same properties as this SKImageInfo, but with the specified dimensions.

WithSize(SKSizeI)

Operators

Equality(SKImageInfo, SKImageInfo)
Inequality(SKImageInfo, SKImageInfo)

Applies to