Click here to Skip to main content
15,885,804 members
Articles / Desktop Programming / MFC

FreeImage Display Demo

Rate me:
Please Sign up or sign in to vote.
3.98/5 (20 votes)
4 Jun 2008Public Domain17 min read 97.1K   10.4K   54  
How to display a bitmap in your MFC SDI application using FreeImage. Various rescaling algorithms considered.
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by fi_test.rc
//
#define IDD_ABOUTBOX                    100
#define IDR_MAINFRAME                   128
#define IDR_FITESTTYPE                  129
#define ID_FILE_OPEN_BMP                32771
#define ID_BUTTON_FIT                   32773
#define ID_BUTTON32774                  32774
#define ID_FIT_IMAGE                    32775
#define ID_SCALE_NO_FILTER              32782
#define ID_SCALE_LOWPASS                32783
#define ID_SCALE_NEAREST                32784
#define ID_SCALE_LINEAR                 32785
#define ID_SCALE_PNM                    32786
#define ID_SCALE_BILINEAR               32787
#define ID_SCALE_BOX                    32788
#define ID_SCALE_AREAMAP                32789

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_3D_CONTROLS                     1
#define _APS_NEXT_RESOURCE_VALUE        135
#define _APS_NEXT_COMMAND_VALUE         32790
#define _APS_NEXT_CONTROL_VALUE         1001
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under A Public Domain dedication


Written By
Russian Federation Russian Federation
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions