これは、ピクセル値からRGBを抽出することについてです。ここでは、コードスニペットです:私は技術的に理解 Byte a = (Byte)(myColor >> 24);
// Prevent division by zero
UInt32 ai = a;
if (ai == 0)
{
ai = 1;
}
ai
** ソリューション を見つけたので事実をこれはタイルで、画像は常に173で173にstrechtedされます! これを避けるには、最初にダミー173 by 173を作成し、これをサイズ変更したものとマージしてください! Rect rect = new Rect(0.0, 0.0, width, height);
WriteableBitmap bitmapDummy = new Writeab