GC绘图,图像拷贝
来源:互联网 发布:阿里云拍照核验点 编辑:程序博客网 时间:2024/06/06 14:26
GC绘图,图像拷贝
方法原型:
@param image the source image
@param srcX the x coordinate in the source image to copy from
@param srcY the y coordinate in the source image to copy from
@param srcWidth the width in pixels to copy from the source
@param srcHeight the height in pixels to copy from the source
@param destX the x coordinate in the destination to copy to
@param destY the y coordinate in the destination to copy to
@param destWidth the width in pixels of the destination rectangle
@param destHeight the height in pixels of the destination rectangle
public void drawImage(Image image, int srcX, int srcY, int srcWidth, int srcHeight, int destX, int destY, int destWidth, int destHeight) {
eg:
gc.drawImage(image,0,0, rect.width, rect.height,0,0, rect.width / 2, rect.height / 2);
gc.drawImage(image, 6, 44, 162, 193, 2,2,162,193);
表示从image的(6,44)位置开始拷贝162*193大小的图片区域,放到目标位置的(2,2)处162*193大小的矩形区域内
若目标区域比源图片拷贝大小要小,则压缩图片,否则拉伸图片
- GC绘图,图像拷贝
- GC绘图:GC.drawString
- GC绘图:渐变色
- GC绘图:使用gc.setXORMode的注意事项
- SWT 绘图(GC类)
- 设置GC绘图的透明度
- GC绘图:剪切(Clipping)
- GC绘图:设置笔画信息
- GC绘图:绘制透明文本
- 绘图-图像绘制相关
- 图像列表绘图
- 设置GC绘图中抗锯齿
- GC绘图:开启高级图形子系统
- GC绘图小技巧:调整绘制顺序
- CBitmap图像拷贝
- 图像不规则区域拷贝
- OpenCV编程->图像拷贝
- Matplotlib 绘图并保存图像
- 随笔
- SWT ImageData类简介
- MFC工作线程中获得视图类指针问题
- 新闻列表页面编号连续增加
- python2.7中没有zlib库的解决方案(zipimport.ZipImportError: can't decompress data; zlib not available)
- GC绘图,图像拷贝
- opendedup(sdfs)源码分析4之XattrSupport篇
- 磁盘操作 API
- 人生没有终点, 适时就要启航
- 设计模式学习心得
- 一个搞笑的程序
- 编译android源码及遇到的问题
- 项目文档知多少(二)
- う 如果有一天,全世界背叛了祢、俄会站在祢身后,背叛全世界.