mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-02-04 05:31:14 +00:00
8 lines
224 B
C++
8 lines
224 B
C++
|
#include "ImageWriter.h"
|
||
|
|
||
|
uint32 ImageWriter::GetChannelForPixel(uint32 x, uint32 y, uint32 ch) {
|
||
|
uint32 bytesPerRow = GetWidth() * 4;
|
||
|
uint32 byteLocation = y * bytesPerRow + x*4 + ch;
|
||
|
return m_PixelData[byteLocation];
|
||
|
}
|