使用Win32加载和显示图像(无MFC) [英] Loading and displaying an image using Win32 (no MFC)

查看:110
本文介绍了使用Win32加载和显示图像(无MFC)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




有谁知道使用Win32加载,处理和显示图像的良好基本软件包是什么?

我一直在尝试找到最简单的解决方案,用于从文件或资源中读取图像并将其显示在窗口中.我只使用Win32库(没有MFC).我在此网站上找到了一个程序包,该程序包为低级库提供了包装器,用于加载图像,而不进行其他操作: DIBSection包装器适用于Win32和WinCE [ ^ ] .

这个特定的程序包使用MFC,但是有一个不使用MFC的库的链接.不幸的是,当我尝试编译此类时,出现了大量错误. (文件名为CDIB.h和CDIB.cc.)

我想知道是否有人遇到过类似情况,是否还有其他人正在使用的另一个软件包?我推荐的程序包看起来不错,不幸的是,我什至无法运行MFC版本.我应该尝试使用其他包装吗?

在此先谢谢您!

Hi,


Does anyone know what is a good basic package for loading, processing, and displaying images using Win32?

I have been trying to figure the simplest solution for reading an image from a file or resource, and displaying it to a window. I am only using Win32 libraries (no MFC). I found a package on this website that provides a wrapper to the low-level libraries for loading images and whatnot: A DIBSection wrapper for Win32 and WinCE[^].

This particular package uses MFC, however there is a link to the libraries that don''t use MFC. Unfortunately I get tons of errors when I try to compile this class. (The files are called CDIB.h and CDIB.cc.)

I was wondering if anyone has run into a similar situation, and if there is another package that everyone else is using? The package I referrenced looks nice, unfortunately I can''t even get the MFC version to run. Is there a different package I should try?

Thanks in advance!

推荐答案

尝试 http: //www.antigrain.com/doc/introduction/introduction.agdoc.html [
Try http://www.antigrain.com/doc/introduction/introduction.agdoc.html[^]
It''s fast and cross-platform.


这篇关于使用Win32加载和显示图像(无MFC)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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