Skip to main content
Version: 12 Dec 2024

ImageDimensions

NameSpace: Android

Inherits from:
IEnumerable

Public Methods

NativeArray< T > CreateNativeArray< T >

public NativeArray< T > CreateNativeArray< T >(
Allocator allocator,
NativeArrayOptions options =NativeArrayOptions.ClearMemory
)

Parameters

TypeNameDescription
Allocatorallocator
NativeArrayOptionsoptions

ImageCoordinates GetCoordinatesFromIndex

public ImageCoordinates GetCoordinatesFromIndex(
int index
)

Parameters

TypeNameDescription
intindex

IEnumerator IEnumerable. GetEnumerator

public IEnumerator IEnumerable. GetEnumerator()

Enumerator GetEnumerator

public Enumerator GetEnumerator()

ImageDimensions

public ImageDimensions(
int width,
int height
)

Parameters

TypeNameDescription
intwidth
intheight

Public Attributes

Height


public readonly int Height;


Size


public int Size => Width * Height;


Width


public readonly int Width;