如何从IImage创建图像区域? [英] How to create image region from IImage?

查看:115
本文介绍了如何从IImage创建图像区域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,
我的要求是根据给定的IImage创建特定的图像区域(给定x,y坐标和宽度,图像区域的高度).
Hi,
My requirement is to create specific region of image (given x,y coordinates & width, height of region of image) from the given IImage.


我可以使用IImage-> Draw(handle,destRect,srcRect)方法绘制drawRegion.但是,我应该能够将此图像保存在另一个IImage对象中,而不仅仅是在屏幕上绘制.

I am able to drawRegion using IImage->Draw(handle, destRect, srcRect) method. However, I should be able to save this image in another IImage object rather than just drawing it on screen.


我尝试使用ExtCreateRegion(),但是无法生成适当的HRGN.另外,请告诉我是否可以从HRGN生成IImage对象.

有人可以尽快帮助我吗?

致谢,
Aahna

I tried using ExtCreateRegion() however, I am not able to generate proper HRGN. Also please tell me if generating IImage object from HRGN is possible or not.

Can anyone help me as soon as possible?

Regards,
Aahna

推荐答案

我对Windows Mobile没有任何经验,但是我进行了一些搜索,这是我想到的:
I don''t have any experience with Windows Mobile, but I did some searches and this is what I came up with:

  • Convert Bitmap to PNG
  • Copy HBitmap to IImage


这篇关于如何从IImage创建图像区域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆