[英]VB.NET: Resize an image (jpg,gif,png) to avoid out of memory error in Picturebox Control on .NETCF 2.0
我正在寻找一种解决方案,以调整从VB.NET中.NETCF 2.0上的Picturebox Control中的数组传递的图像(jpg)的大小,而无需使用opennetcf库,这可能吗?
You have to load the image into a thumbnail with IImage::GetThumbnail . 您必须使用IImage :: GetThumbnail将图像加载到缩略图中。 This is done using the Imaging library via P/Invoke.
这是通过P / Invoke使用映像库完成的。 The Smart Device Framework has this done , but the original question is asking for advice on how to do it without the SDF.
智能设备框架已完成此操作 ,但最初的问题是寻求有关在没有SDF的情况下如何执行此操作的建议。 Without is a bit more complex as you're going to have to deal with writing the proxy wrapper classes.
没有它会更加复杂,因为您将不得不编写代理包装器类。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.