engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FImage结构体 参考

Structure for raw image data. 更多...

#include <ImageCore.h>

Public 成员函数

IMAGECORE_API void CopyTo (FImage &DestImage, ERawImageFormat::Type DestFormat, EGammaSpace DestGammaSpace) const
 Copies the image to a destination image with the specified format. 更多...
 
 FImage ()
 Default constructor.
 
IMAGECORE_API FImage (int32 InSizeX, int32 InSizeY, ERawImageFormat::Type InFormat, EGammaSpace InGammaSpace=EGammaSpace::Linear)
 Creates and initializes a new image with a single slice. 更多...
 
IMAGECORE_API FImage (int32 InSizeX, int32 InSizeY, int32 InNumSlices, ERawImageFormat::Type InFormat, EGammaSpace InGammaSpace=EGammaSpace::Linear)
 Creates and initializes a new image with the specified number of slices. 更多...
 
IMAGECORE_API int32 GetBytesPerPixel () const
 Gets the number of bytes per pixel. 更多...
 
IMAGECORE_API void Init (int32 InSizeX, int32 InSizeY, ERawImageFormat::Type InFormat, EGammaSpace InGammaSpace=EGammaSpace::Linear)
 Initializes this image with a single slice. 更多...
 
IMAGECORE_API void Init (int32 InSizeX, int32 InSizeY, int32 InNumSlices, ERawImageFormat::Type InFormat, EGammaSpace InGammaSpace=EGammaSpace::Linear)
 Initializes this image with the specified number of slices. 更多...
 
IMAGECORE_API void ResizeTo (FImage &DestImage, int32 DestSizeX, int32 DestSizeY, ERawImageFormat::Type DestFormat, EGammaSpace DestGammaSpace) const
 Copies and resizes the image to a destination image with the specified size and format. 更多...
 

Public 属性

ERawImageFormat::Type Format
 Format in which the image is stored.
 
EGammaSpace GammaSpace
 The gamma space the image is stored in.
 
int32 NumSlices
 Number of image slices.
 
TArray64< uint8 > RawData
 Raw image data.
 
int32 SizeX
 Width of the image.
 
int32 SizeY
 Height of the image.
 

详细描述

Structure for raw image data.

构造及析构函数说明

◆ FImage() [1/2]

IMAGECORE_API FImage::FImage ( int32  InSizeX,
int32  InSizeY,
int32  InNumSlices,
ERawImageFormat::Type  InFormat,
EGammaSpace  InGammaSpace = EGammaSpace::Linear 
)

Creates and initializes a new image with the specified number of slices.

参数
InSizeX- The image width.
InSizeY- The image height.
InNumSlices- The number of slices.
InFormat- The image format.
bInSRGB- Whether the color values are in SRGB format.

◆ FImage() [2/2]

IMAGECORE_API FImage::FImage ( int32  InSizeX,
int32  InSizeY,
ERawImageFormat::Type  InFormat,
EGammaSpace  InGammaSpace = EGammaSpace::Linear 
)

Creates and initializes a new image with a single slice.

参数
InSizeX- The image width.
InSizeY- The image height.
InFormat- The image format.
bInSRGB- Whether the color values are in SRGB format.

成员函数说明

◆ CopyTo()

IMAGECORE_API void FImage::CopyTo ( FImage &  DestImage,
ERawImageFormat::Type  DestFormat,
EGammaSpace  DestGammaSpace 
) const

Copies the image to a destination image with the specified format.

参数
DestImage- The destination image.
DestFormat- The destination image format.
DestSRGB- Whether the destination image is in SRGB format.

◆ GetBytesPerPixel()

IMAGECORE_API int32 FImage::GetBytesPerPixel ( ) const

Gets the number of bytes per pixel.

返回
Bytes per pixel.

◆ Init() [1/2]

IMAGECORE_API void FImage::Init ( int32  InSizeX,
int32  InSizeY,
ERawImageFormat::Type  InFormat,
EGammaSpace  InGammaSpace = EGammaSpace::Linear 
)

Initializes this image with a single slice.

参数
InSizeX- The image width.
InSizeY- The image height.
InFormat- The image format.
bInSRGB- Whether the color values are in SRGB format.

◆ Init() [2/2]

IMAGECORE_API void FImage::Init ( int32  InSizeX,
int32  InSizeY,
int32  InNumSlices,
ERawImageFormat::Type  InFormat,
EGammaSpace  InGammaSpace = EGammaSpace::Linear 
)

Initializes this image with the specified number of slices.

参数
InSizeX- The image width.
InSizeY- The image height.
InNumSlices- The number of slices.
InFormat- The image format.
bInSRGB- Whether the color values are in SRGB format.

◆ ResizeTo()

IMAGECORE_API void FImage::ResizeTo ( FImage &  DestImage,
int32  DestSizeX,
int32  DestSizeY,
ERawImageFormat::Type  DestFormat,
EGammaSpace  DestGammaSpace 
) const

Copies and resizes the image to a destination image with the specified size and format.

Resize is done using bilinear filtering

参数
DestImage- The destination image.
DestSizeX- Width of the resized image
DestSizeY- Height of the resized image
DestFormat- The destination image format.
DestSRGB- Whether the destination image is in SRGB format.

该结构体的文档由以下文件生成: