UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
BmpImageWrapper.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"
6#include "ImageWrapperBase.h"
7
8
13 : public FImageWrapperBase
14{
15public:
16
18 FBmpImageWrapper(bool bInHasHeader = true, bool bInHalfHeight = false);
19
20public:
21
24
30 bool LoadBMPHeader();
31
37 bool LoadBMPInfoHeader(int64 HeaderOffset);
38
39public:
40
41 //~ FImageWrapper interface
42
43 virtual void Compress(int32 Quality) override;
44 virtual void Uncompress(const ERGBFormat InFormat, int32 InBitDepth) override;
45 virtual bool SetCompressed(const void* InCompressedData, int64 InCompressedSize) override;
46
47 virtual bool CanSetRawFormat(const ERGBFormat InFormat, const int32 InBitDepth) const override;
49
50private:
51
53 bool bHasHeader;
54
56 bool bHalfHeight;
57};
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
Definition BmpImageWrapper.h:14
bool LoadBMPInfoHeader(int64 HeaderOffset)
Definition BmpImageWrapper.cpp:502
virtual bool CanSetRawFormat(const ERGBFormat InFormat, const int32 InBitDepth) const override
Definition BmpImageWrapper.cpp:545
virtual ERawImageFormat::Type GetSupportedRawFormat(const ERawImageFormat::Type InFormat) const override
Definition BmpImageWrapper.cpp:550
virtual bool SetCompressed(const void *InCompressedData, int64 InCompressedSize) override
Definition BmpImageWrapper.cpp:461
virtual void Uncompress(const ERGBFormat InFormat, int32 InBitDepth) override
Definition BmpImageWrapper.cpp:32
bool UncompressBMPData(const ERGBFormat InFormat, const int32 InBitDepth)
Definition BmpImageWrapper.cpp:66
bool LoadBMPHeader()
Definition BmpImageWrapper.cpp:483
Definition ImageWrapperBase.h:17
Type
Definition ImageCore.h:57