Paměť jsem přiděloval co to šlo jak na PDA tak na emulatoru.
Výsledek stejný. (Přeplnění vyhrazeného bufferu ? )
Zkouším:
public Bitmap ResizeBitmap(Bitmap b, int nWidth, int nHeight)
{
Bitmap result = new Bitmap(nWidth, nHeight);
using (Graphics g = Graphics.FromImage((Image)result))
g.DrawImage(b, 0, 0, nWidth, nHeight);
return result;
}
Ale už po přídání tohoto bloku (bez použítí) to píše 4 errory:
error CS1502: The best overloaded method match for 'System.Drawing.Graphics.DrawImage(System.Drawing. Image, int, int, System.Drawing.Rectangle, System.Drawing.GraphicsUnit)' has some invalid arguments
error CS1503: Argument '4': cannot convert from 'int' to 'System.Drawing.Rectangle'
error CS1503: Argument '5': cannot convert from 'int' to 'System.Drawing.GraphicsUnit'
error CS0144: Cannot create an instance of the abstract class or interface 'System.IO.Stream'
Takže... musím prostudovat manuál asi...
