UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IcoImageWrapper.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
7
8#include "ImageWrapperBase.h"
9
10
15 : public FImageWrapperBase
16{
17public:
18
21
22public:
23
24 //~ FImageWrapper Interface
25
26 virtual void Compress(int32 Quality) override;
27 virtual void Uncompress(const ERGBFormat InFormat, int32 InBitDepth) override;
28 virtual bool SetCompressed(const void* InCompressedData, int64 InCompressedSize) override;
29 virtual bool GetRaw(const ERGBFormat InFormat, int32 InBitDepth, TArray64<uint8>& OutRawData) override;
30
31 virtual bool CanSetRawFormat(const ERGBFormat InFormat, const int32 InBitDepth) const override;
33
34protected:
35
41 bool LoadICOHeader();
42
43private:
44
46 TSharedPtr<FImageWrapperBase> SubImageWrapper;
47
49 uint32 ImageOffset;
50
52 uint32 ImageSize;
53
55 bool bIsPng;
56};
FPlatformTypes::int64 int64
A 64-bit signed integer.
Definition Platform.h:1127
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ERGBFormat
Definition IImageWrapper.h:76
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition IcoImageWrapper.h:16
virtual bool GetRaw(const ERGBFormat InFormat, int32 InBitDepth, TArray64< uint8 > &OutRawData) override
Definition IcoImageWrapper.cpp:111
virtual bool CanSetRawFormat(const ERGBFormat InFormat, const int32 InBitDepth) const override
Definition IcoImageWrapper.cpp:70
bool LoadICOHeader()
Definition IcoImageWrapper.cpp:132
virtual bool SetCompressed(const void *InCompressedData, int64 InCompressedSize) override
Definition IcoImageWrapper.cpp:103
virtual ERawImageFormat::Type GetSupportedRawFormat(const ERawImageFormat::Type InFormat) const override
Definition IcoImageWrapper.cpp:77
FIcoImageWrapper()
Definition IcoImageWrapper.cpp:61
virtual void Uncompress(const ERGBFormat InFormat, int32 InBitDepth) override
Definition IcoImageWrapper.cpp:89
Definition ImageWrapperBase.h:17
Definition SharedPointer.h:692
Type
Definition ImageCore.h:57