获取视频的像素位数(4=16 色, 8=256色)
类 别:图形
function deviceBitsPerPixel: integer;
var
DC: HDC;
begin
DC := getDC ( 0 );
try
result := GetDeviceCaps ( DC, PLANES ) * GetDeviceCaps(DC, BITSPIXEL );
finally
releaseDC ( 0, DC );
end;
end;
原创文章如转载,请注明:转载自心动吧DELPHI网络书 [ http://www.abcxd.com/delphi/ ]
本文链接地址:http://www.abcxd.com/delphi/abcxddelphi/delphiXITONG/151.html