public int GetSizeOf() { int res = 0; if (bitmapPixelData != null) res += bitmapPixelData.Length * 4; return res; }