Navigation
API > API/Runtime > API/Runtime/ImageCore
The easy and efficient way to write a pixel processing loop that supports all pixel formats is to use
ImageParallelProcessLinearPixels
passing in a lambda like : ProcessLinearPixelsAction ProcessPixels(TArrayView64
this will let you visit all the pixels as FLinearColor.
You can use this for read (return ProcessLinearPixelsAction::ReadOnly) or read-write (return ProcessLinearPixelsAction::Modified). ImageCore.h in global namespace: ImageParallelForComputeNumJobsForPixels ImageParallelForComputeNumJobsForRows
| Name | FImageCore::ProcessLinearPixelsAction |
| Type | enum |
| Header File | /Engine/Source/Runtime/ImageCore/Public/ImageParallelFor.h |
| Include Path | #include "ImageParallelFor.h" |
Syntax
namespace FImageCore
{
enum ProcessLinearPixelsAction
{
ReadOnly,
Modified,
}
}
Values
| Name | Remarks |
|---|---|
| ReadOnly | |
| Modified |