//format jpg to bmp
function toBmp0(jpg: TJpegImage):TBitmap; stdcall;
var
bmp: TBitmap;
begin
Bmp := TBitmap.Create;
Bmp.Assign(jpg);
toBmp0 := bmp;
end;编译出错,原因delphi2010把TBitmap当成windows.pas下的{ Bitmap Header Definition }
PBitmap = ^TBitmap;
{$EXTERNALSYM tagBITMAP}
tagBITMAP = packed record
bmType: Longint;
bmWidth: Longint;
bmHeight: Longint;
bmWidthBytes: Longint;
bmPlanes: Word;
bmBitsPixel: Word;
bmBits: Pointer;
end;
TBitmap = tagBITMAP;
{$EXTERNALSYM BITMAP}
BITMAP = tagBITMAP;
而实际上应该是Graphics
解决方案 »
- 在dbgrid里修改了下数据,还没点保存按钮,数据库里的数据就被改变了?如何解决?
- 如何获取PopupMenu1是由哪个对象pop出来的?
- 各位高手请帮个忙,一个简单的打包问题....?
- delhi 开发远程桌面连接程序
- 谁有dbgrideh控件,就请直接给我一个,谢谢!!!
- DELPHI通用模块怎么做怎么调用
- 我截获了ctrl+c,可我还是希望复制成功,怎么办?在线等候
- timageenvect 中画曲线不能结束的问题。
- TClientSocket与TServerSokcet的10055是何错误?为什么会常发生?
- delphi 怎么读取sql 2008 中最新的一条记录
- IDTelnet的问题,困扰了很久,请高手指点
- 在DELPHI里怎么把外部控件打包到程序里面啊?
Uses Windows, Graphics, 如果要指定为 Windows 的 TBitmap 就:
Uses Graphics, Windows,
(注意顺序)