📚Copy Texture to Clipboard

📄 Description

Reads the pixel data from a given Texture asset and copies it to the system clipboard as a standard 32-bit bitmap image.

Name
Description

Texture

The texture asset to copy. This can be a UTexture2D or a UTextureRenderTarget2D.

Output Pins

  • Out (Exec): The execution output.

  • Return Value (Boolean):

Usage Details & Supported Formats

  • Supported Input Types: UTexture2D and UTextureRenderTarget2D.

  • Supported Pixel Formats: The function can read pixels from textures with the following internal formats:

    • PF_B8G8R8A8

    • PF_R8G8B8A8

    • PF_FloatRGBA

    • PF_FloatRGB

  • The image is placed on the clipboard as a 32-bpp BGRA bitmap, which is compatible with most other applications.

  • Alpha Channel: Similar to pasting, if a UTextureRenderTarget2D has a fully transparent alpha channel, it will be automatically converted to fully opaque before being copied.

Failure Conditions

The Return Value will be false if:

  • The input Texture is null.

  • The texture has invalid dimensions (e.g., width or height is zero or less).

  • The texture's internal pixel format is not one of the supported formats listed above.

  • The texture's resource is invalid or not yet loaded.

  • The function fails to read the pixel data from the GP

Last updated