cohtml.Net.ResourceResponse.UserImageData
Description of the properties of the user provided image.
Inherits from SystemIDisposable
Public Types
Section titled “Public Types”| Name | |
|---|---|
| enum class | AlphaPremultiplicationMode { Premultiplied, NonPremultiplied} Enumeration with the available alpha premultiplication modes. Used for the renderer pipeline state (blend modes) when drawing. |
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| virtual void | Dispose() |
| UserImageData() |
Public Properties
Section titled “Public Properties”| Name | |
|---|---|
| uint | Width |
| uint | Height |
| uint | ContentRectX |
| uint | ContentRectY |
| uint | ContentRectWidth |
| uint | ContentRectHeight |
| uint | ImageHandle Set to a unique ID value greater than 0 to make image a live view. |
| uint | SystemOwnerId |
| uint | MipsCount |
| int | Origin |
| int | Format |
| 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. |
| 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. |
| ResourceResponse.UserImageData.AlphaPremultiplicationMode | AlphaPremultiplication Whether alpha is premultiplied in the image. |
Protected Attributes
Section titled “Protected Attributes”| Name | |
|---|---|
| bool | swigCMemOwn |
Public Types Documentation
Section titled “Public Types Documentation”enum AlphaPremultiplicationMode
Section titled “enum AlphaPremultiplicationMode”| Enumerator | Value | Description |
|---|---|---|
| Premultiplied | Alpha is premultiplied in the color channels. | |
| NonPremultiplied | Alpha 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
Section titled “Public Functions Documentation”function Dispose
Section titled “function Dispose”virtual void Dispose()function UserImageData
Section titled “function UserImageData”UserImageData()Public Property Documentation
Section titled “Public Property Documentation”property Width
Section titled “property Width”uint Width;property Height
Section titled “property Height”uint Height;property ContentRectX
Section titled “property ContentRectX”uint ContentRectX;property ContentRectY
Section titled “property ContentRectY”uint ContentRectY;property ContentRectWidth
Section titled “property ContentRectWidth”uint ContentRectWidth;property ContentRectHeight
Section titled “property ContentRectHeight”uint ContentRectHeight;property ImageHandle
Section titled “property ImageHandle”uint ImageHandle;Set to a unique ID value greater than 0 to make image a live view.
property SystemOwnerId
Section titled “property SystemOwnerId”uint SystemOwnerId;property MipsCount
Section titled “property MipsCount”uint MipsCount;property Origin
Section titled “property Origin”int Origin;property Format
Section titled “property Format”int Format;property TextureBatchingHint
Section titled “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
Section titled “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 AlphaPremultiplication
Section titled “property AlphaPremultiplication”ResourceResponse.UserImageData.AlphaPremultiplicationMode AlphaPremultiplication;Whether alpha is premultiplied in the image.
Protected Attributes Documentation
Section titled “Protected Attributes Documentation”variable swigCMemOwn
Section titled “variable swigCMemOwn”bool swigCMemOwn;© 2026 Coherent Labs. All rights reserved.