图像处理源码(包括复制,旋转,将图片数据转成二维数组)
里面的函数有如下: void GetImageParament(CImage *pImg,struct IMAGEPARAMENT *ppImgParam); int InImage(CImage *pImg,int x,int y); DWORD GetPixelValue(CImage *pImg,int x,int y); void SetPixelValue(CImage *pImg,int x,int y,DWORD c); void GetRectValue(CImage *pImg,int x,int y,int Dx,int Dy,BYTE *buf); void SetRectValue(CImage *pImg,int x,int y,int Dx,int Dy,BYTE *buf); void GetPalette(CImage *pImg,int n,int *pr,int *pg,int *pb); void SetPalette(CImage *pImg,int n,int r,int g,int b); void GetAllPalette(CImage *pImg,RGBQUAD *ColorTab) ; void SetAllPalette(CImage *pImg,RGBQUAD *ColorTab); void RectFillValue(CImage *pImg,int x,int y,int Dx,int Dy,DWORD color); void DrawBox(CImage *pImg,int x,int y,int Dx,int Dy,int w,DWORD c); void SetDefaultPalette(CImage *pImg); int PaletteType(RGBQUAD *ColorTab); int ImageType(CImage *pImgm); void ImageCopy(CImage *pImgn,CImage *pImgm); BYTE** Create2DList(CImage *pImgm); void Release2DList(BYTE** list);
下载地址
用户评论
要是有示例就更好了
有一定的参考价值,不过要改才能运行
有一定的参考价值,谢谢分享
还可以,主要是旋转的代码自己写确实困难.有源码还是可以参考的
不能运行啊.
有一定的参考价值,谢谢LZ
挺好的,感谢楼主分享
我的不可以用撒
改改也能用,但是不是很好用
可以用于学习的,不错1的源码