C
czx_china
Unregistered / Unconfirmed
GUEST, unregistred user!
我拷贝WORD的内容,然后从粘贴板中取出图片,
mg.Picture.Assign(Clipboard);
bmp := TBitmap.Create;
Bmp.Width := pWidth;
Bmp.Height := pHeight;
cm := Bmp.Canvas.CopyMode;
Bmp.Canvas.Brush.Color := clBlack;
Bmp.Canvas.Brush.Style := bsSolid;
Bmp.Canvas.CopyMode := cmMergePaint;
Bmp.Canvas.Rectangle(0, 0, bmp.Width, bmp.Height);
Img.Picture.Metafile.Width := 不知道这两个该怎么取值
Img.Picture.Metafile.Height :=
Bmp.Canvas.Draw(0,0,Img.Picture.Metafile);//但到这边BMP图象很大,拷贝到画图软件正常,为什么?该怎么做?
mg.Picture.Assign(Clipboard);
bmp := TBitmap.Create;
Bmp.Width := pWidth;
Bmp.Height := pHeight;
cm := Bmp.Canvas.CopyMode;
Bmp.Canvas.Brush.Color := clBlack;
Bmp.Canvas.Brush.Style := bsSolid;
Bmp.Canvas.CopyMode := cmMergePaint;
Bmp.Canvas.Rectangle(0, 0, bmp.Width, bmp.Height);
Img.Picture.Metafile.Width := 不知道这两个该怎么取值
Img.Picture.Metafile.Height :=
Bmp.Canvas.Draw(0,0,Img.Picture.Metafile);//但到这边BMP图象很大,拷贝到画图软件正常,为什么?该怎么做?