FSlateDynamicImageBrush::CreateWithImageData

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Brushes/SlateDynamicImageBrush.h

Include

#include "Brushes/SlateDynamicImageBrush.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Brushes/SlateDynamicImageBrush.cpp

Syntax

static TSharedPtr< FSlateDynamicImageBrush > CreateWithImageData
(
    const FName InTextureName,
    const FVector2D & InImageSize,
    const TArray< uint8 > & InImageData,
    const FLinearColor & InTint,
    ESlateBrushTileType::Type InTiling,
    ESlateBrushImageType::Type InImageType
)

Parameters

Parameter

Description

InTextureName

The name to use when registering the image data as a texture.

InImageSize

How large should the image be (not necessarily the image size on disk)

InImageData

The raw image data formatted as BGRA

InTint

The tint of the image.

InTiling

How do we tile if at all?

InImageType

The type of image this this is

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss