Click here to Skip to main content
15,868,016 members
Articles / Multimedia / OpenGL

Zoom An Image With Different Interpolation Types

Rate me:
Please Sign up or sign in to vote.
4.91/5 (57 votes)
21 Sep 2011CPOL13 min read 222.5K   14.6K   109  
Implementation of different interpolations[Bi-Linear and Bi-Cubic] with OpenGL.
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by ZoomInterpolation.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_ZOOMINTERPOLATION_DIALOG    102
#define IDR_MAINFRAME                   128
#define IDB_BITMAP_FLOWER               129
#define IDR_GLSL_SHADER_BILINEAR        130
#define IDR_GLSL_SHADER_BICUBIC         131
#define IDR_GLSL_SHADER_BELL            132
#define IDR_GLSL_SHADER1                133
#define IDR_GLSL_SHADER2                134
#define IDR_GLSL_SHADER_BSPLINE         134
#define IDR_GLSL_SHADER3                135
#define IDR_GLSL_SHADER_CATMULL         135
#define IDC_STATIC_RENDER               1000
#define IDC_RADIO1                      1001
#define IDC_RADIO_GL_NEAREST            1001
#define IDC_RADIO2                      1002
#define IDC_RADIO_GL_LINEAR             1002
#define IDC_RADIO3                      1003
#define IDC_RADIO_GLSL_LINEAR           1003
#define IDC_RADIO4                      1004
#define IDC_RADIO_GLSL_BICUBIC_TRIANGULAR 1004
#define IDC_RADIO5                      1005
#define IDC_RADIO_GLSL_BICUBIC_BSPLINE  1005
#define IDC_RADIO6                      1006
#define IDC_RADIO_GLSL_BICUBIC_BELL     1006
#define IDC_RADIO_GLSL_BICUBIC_CATMULL  1007
#define IDC_BUTTON1                     1008
#define IDC_STATIC_INTERP_CURVE         1009
#define IDC_BUTTON2                     1010
#define IDC_BUTTON3                     1011
#define IDC_BUTTON4                     1012


// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        136
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1013
#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 The Code Project Open License (CPOL)


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

Comments and Discussions