简体   繁体   中英

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 . This is done using the Imaging library via 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. Without is a bit more complex as you're going to have to deal with writing the proxy wrapper classes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM