谁知?谁晓?谁会?

badDuck 2003-05-27 06:26:02
TBITMAP里咋样使BMP图片充满之?而不是显示图片的局部?
我改了TBITMAP的WIDTH和HEIGHT它只是改变显示宽度和长度而不是改变图片的宽度和长度。就是说咋做像acdsee里的图片放大和缩小?
...全文
91 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
whitetiger8 2003-05-30
  • 打赏
  • 举报
回复
TBITMAP.strech:=true;
应该是这个
qibo999 2003-05-30
  • 打赏
  • 举报
回复
Canvas.StretchDraw应该可以的
firetoucher 2003-05-30
  • 打赏
  • 举报
回复
up 用stretch就可以了,或者你可以选择直接使用api函数StretchBlt
The StretchBlt function copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the destination rectangle, if necessary. The system stretches or compresses the bitmap according to the stretching mode currently set in the destination device context.

BOOL StretchBlt(
HDC hdcDest, // handle to destination DC
int nXOriginDest, // x-coord of destination upper-left corner
int nYOriginDest, // y-coord of destination upper-left corner
int nWidthDest, // width of destination rectangle
int nHeightDest, // height of destination rectangle
HDC hdcSrc, // handle to source DC
int nXOriginSrc, // x-coord of source upper-left corner
int nYOriginSrc, // y-coord of source upper-left corner
int nWidthSrc, // width of source rectangle
int nHeightSrc, // height of source rectangle
DWORD dwRop // raster operation code
);
qwertyasd 2003-05-30
  • 打赏
  • 举报
回复
TBITMAP.strech:=true;

我友好的算法
jinhaowu@hotmail.com
susanxjuan 2003-05-30
  • 打赏
  • 举报
回复
TBITMAP.strech:=true;
sunware 2003-05-29
  • 打赏
  • 举报
回复
简单地说用Stretch就可以满足你的要求.但是这种画法的效果很差,几乎没有实用价值.
CodeSaint 2003-05-29
  • 打赏
  • 举报
回复
TBITMAP.strech:=true;
fangjx 2003-05-29
  • 打赏
  • 举报
回复
TBITMAP.strech:=true;
然后改变TBITMAP的大小。
mmtang3 2003-05-29
  • 打赏
  • 举报
回复
Canvas.StretchDraw不知能不能满足楼主的要求。
microjuz 2003-05-27
  • 打赏
  • 举报
回复
TBITMAP里咋样使BMP图片充满之?而不是显示图片的局部?
~~align属性设alclient

你难道想让存储在内存中的图片变大变小,那要写特殊的算法.这个太深,偶不会,keke~~

第一哈,楼主把分都给偶吧!!

1,184

社区成员

发帖
与我相关
我的任务
社区描述
Delphi GAME,图形处理/多媒体
社区管理员
  • GAME,图形处理/多媒体社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧