diff --git a/PluginCommon/VisBitmap8.cs b/PluginCommon/VisBitmap8.cs index ca738ef..61afd4d 100644 --- a/PluginCommon/VisBitmap8.cs +++ b/PluginCommon/VisBitmap8.cs @@ -55,13 +55,15 @@ namespace PluginCommon { mNextColorIdx = 0; } - // TODO: add GetPixelIndex, which returns the index we passed into SetPixelIndex - public int GetPixel(int x, int y) { byte pix = mData[x + y * Width]; return mPalette[pix]; } + public byte GetPixelIndex(int x, int y) { + return mData[x + y * Width]; + } + /// /// Sets the color for a single pixel. ///