cohtml.Net.ResourceResponse.UserImageData

Description of the properties of the user provided image.

Inherits from SystemIDisposable

Public Types

Name
enum classTextureFilteringMode { FilterPoint, FilterLinear}
Enumeration with the available texture filtering modes for user images.
enum classAlphaPremultiplicationMode { Premultiplied, NonPremultiplied}
Enumeration with the available alpha premultiplication modes. Used for the renderer pipeline state (blend modes) when drawing.

Public Functions

Name
virtual voidDispose()
UserImageData()

Public Properties

Name
uintWidth
uintHeight
uintContentRectX
uintContentRectY
uintContentRectWidth
uintContentRectHeight
uintImageHandle
Set to a unique ID value greater than 0 to make image a live view.
uintSystemOwnerId
uintMipsCount
intOrigin
intFormat
global.System.IntPtrTextureBatchingHint
Pointer to a user-defined identifier that will be used to identify user images belonging to the same texture. User images sharing the same TextureBatchingHint will leave only a single image’s memory footprint inside the GPU Memory Tracker. Draws using different user images that share the same TextureBatchingHint can be batched together in a single draw call even when the Texture pointer is different.
global.System.IntPtrTexture
Pointer to a user-defined user data of the texture. Will be passed as-is to the graphics backend. Draws using different user images that share the same Texture pointer can be batched together in a single draw call.
ResourceResponse.UserImageData.TextureFilteringModeTextureFiltering
Requests a specific filtering type for this user image.
ResourceResponse.UserImageData.AlphaPremultiplicationModeAlphaPremultiplication
Whether alpha is premultiplied in the image.

Protected Attributes

Name
boolswigCMemOwn

Public Types Documentation

enum TextureFilteringMode

EnumeratorValueDescription
FilterPointPoint texture sampling (Nearest-neighbor)
FilterLinearBilinear texture filtering.

Enumeration with the available texture filtering modes for user images.

enum AlphaPremultiplicationMode

EnumeratorValueDescription
PremultipliedAlpha is premultiplied in the color channels.
NonPremultipliedAlpha is not premultiplied, it’s independent of the color channels.

Enumeration with the available alpha premultiplication modes. Used for the renderer pipeline state (blend modes) when drawing.

Public Functions Documentation

function Dispose

virtual void Dispose()

function UserImageData

UserImageData()

Public Property Documentation

property Width

uint Width;

property Height

uint Height;

property ContentRectX

uint ContentRectX;

property ContentRectY

uint ContentRectY;

property ContentRectWidth

uint ContentRectWidth;

property ContentRectHeight

uint ContentRectHeight;

property ImageHandle

uint ImageHandle;

Set to a unique ID value greater than 0 to make image a live view.

property SystemOwnerId

uint SystemOwnerId;

property MipsCount

uint MipsCount;

property Origin

int Origin;

property Format

int Format;

property TextureBatchingHint

global.System.IntPtr TextureBatchingHint;

Pointer to a user-defined identifier that will be used to identify user images belonging to the same texture. User images sharing the same TextureBatchingHint will leave only a single image’s memory footprint inside the GPU Memory Tracker. Draws using different user images that share the same TextureBatchingHint can be batched together in a single draw call even when the Texture pointer is different.

property Texture

global.System.IntPtr Texture;

Pointer to a user-defined user data of the texture. Will be passed as-is to the graphics backend. Draws using different user images that share the same Texture pointer can be batched together in a single draw call.

property TextureFiltering

ResourceResponse.UserImageData.TextureFilteringMode TextureFiltering;

Requests a specific filtering type for this user image.

property AlphaPremultiplication

ResourceResponse.UserImageData.AlphaPremultiplicationMode AlphaPremultiplication;

Whether alpha is premultiplied in the image.

Protected Attributes Documentation

variable swigCMemOwn

bool swigCMemOwn;