L
LitterTiger
Unregistered / Unconfirmed
GUEST, unregistred user!
我用TImage里的canvas显示。 int format, width, height; width = edtWidth->Text.ToInt(); height = edtHeight->Text.ToInt(); if (!width || !height) return; imgPicture->Height = height; imgPicture->Width = width; for (int i=0; i<width; i++) for(int j=0; j<height; j++) imgPicture->Canvas->Pixels[j] = 0x000000ff;但是如果开始是10x10的分辨率,然后换成100x100,显示还是10x10. 我发现是因为canvas的cliprect还是10x10,没有变成100x100.clirect又是只读的。这个应该如何处理呢?