Interpolation (Resizing) of a Bitmap image
Archive for the ‘VC++’ Category
Interpolation (Resizing) of a Bitmap image
Posted: October 20, 2009 in C, C++, CUDA, Multimedia, Programming Tips, VC++Tags: *.bmp, Bitmap, C++, CUDA, Image, Interpolation, Multimedia, Pixel, Programming Tips, RAW, Resizing, VC++
To Change the Sharpness of R, G,B values of a Pixel of the image
Posted: October 16, 2009 in C, C++, CUDA, Multimedia, Programming Tips, VC++Tags: *.bmp, Bitmap, C++, CUDA, Image, Multimedia, Pixel, Programming Tips, RAW, RGB, VC++
To Change the Sharpness of R, G,B values of a Pixel of the image
To Change the Contrast of R, G, B values of a Pixel of the image
Posted: October 16, 2009 in C, C++, CUDA, Multimedia, Programming Tips, VC++Tags: *.bmp, Bitmap, C++, Contrast, CUDA, Image, Multimedia, Pixel, Programming Tips, RAW, RGB, VC++
To Change the Contrast of R, G, B values of a Pixel of the image
To Change the brightness of a Pixel of the image
Posted: October 16, 2009 in C, C++, CUDA, Multimedia, Programming Tips, VC++Tags: *.bmp, Bitmap, Brightness, C++, CUDA, Image, Multimedia, Pixel, RAW, RGB
To Change the brightness of a Pixel of the imag
To Change the Gamma of R, G,B values of a Pixel of the image
Posted: October 14, 2009 in C, C++, CUDA, Multimedia, Programming Tips, VC++Tags: *.bmp, Bitmap, C++, Gama, Image, Multimedia, RAW, RGB, VC++
To Change the Gamma of R, G,B values of a Pixel of the image
To Change the Saturation of R, G, B values of a Pixel of the image
Posted: October 14, 2009 in C, C++, CUDA, Multimedia, Programming Tips, VC++Tags: *.bmp, Bitmap, C++, CUDA, Image, Multimedia, Pixel, Programming Tips, RAW, RGB, Saturation, VC++
To Change the Saturation of R, G, B values of a Pixel of the image
To get the R, G, B values of a pixel from a packed or interlaced frame
Posted: October 14, 2009 in C, C++, CUDA, Multimedia, VC++Tags: *.bmp, B, Bitmap, C++, G, Image, Multimedia, Pixel, R, RAW, RGB
#define BCHANNEL 0 #define GCHANNEL 1 #define RCHANNEL 2 unsigned char Clip(int iVal) { return ( iVal > 255 ? 255 : ( iVal < 0 ) ? 0 : iVal) ; } //Pixel Functions int GetValue(int iX, int iY, int iImageWidth, int iImageHeight, int iChannel, int iBPP, BYTE *pbySrc) { Clip(iX); Clip(iY); return pbySrc[iY [...]
To generate Random float/double numbers in a given limit
Posted: October 9, 2009 in Applications, C, C++, Programming Tips, VC++, Visual Studio, Windows, XPTags: C++, VC++
To generate Random float/double numbers in a given limit
YUV to RGB and RGB to YUV Conversions
Posted: September 10, 2009 in C, C++, Programming Tips, VC++Tags: C++, Multimedia, RGB, YUV
RGB to YUV Conversion and YUV to RGB Conversion. This is mainly used in the multimedia domain, especially in Image and in Video.
Select a Folder using VC++
Posted: July 17, 2009 in Programming Tips, VC++, Visual Studio, Windows, XPTags: Folder Selection, VC++, Win32, Windows
To select a folder use the following code snippet where you want. BROWSEINFO stBrowseInfo; LPITEMIDLIST lpSelectedPid; TCHAR pszSelectedFolder[MAX_PATH]; stBrowseInfo.hwndOwner = m_hWnd; stBrowseInfo.pidlRoot = NULL; stBrowseInfo.pszDisplayName = pszSelectedFolder; stBrowseInfo.lpszTitle = _T( “Select Your Folder” ); stBrowseInfo.ulFlags = BIF_RETURNONLYFSDIRS ; stBrowseInfo.lpfn = NULL; stBrowseInfo.lParam = 0; lpSelectedPid = SHBrowseForFolder( &stBrowseInfo ); SHGetPathFromIDList( lpSelectedPid, pszSelectedFolder ); m_csFolderName = [...]