Y ycmzp Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-27 #1 Image1.Width:=Image1.Picture.Width为什么出错?
K kkyy Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-27 #2 Image1.Picture要是nil的话就出错了,里面要有图才有Picture对象。
Y ycmzp Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-27 #3 我放了图片也不行呀! 请教高手!!! 错误信息: [Error] picture.pas(161): Record, object or class type required
卷 卷起千堆雪tyn Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-27 #4 Image1.Width:=Image1.Picture.Bitmap.Width
Y ycmzp Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-27 #5 我的意思是 Image1.Width:=Image1.Picture.Width/2 时出错: [Error] picture.pas(161): Incompatible types: 'Integer' and 'Extended' 我的目的是要通过这段代码缩放图片[!]
我的意思是 Image1.Width:=Image1.Picture.Width/2 时出错: [Error] picture.pas(161): Incompatible types: 'Integer' and 'Extended' 我的目的是要通过这段代码缩放图片[!]
K kkyy Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-27 #6 哦,原来这样错法,早说嘛,改成: Image1.Width:=Image1.Picture.Width div 2
H hamsoft Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-27 #7 这样的问题也问!width是integer, 而width/2 却是extended,可以相等吗? 改成Image1.Width:=Image1.Picture.Width div 2就行了。