how to declare a buffer?
-
dear all i have loaded a jpeg image already, now i would like to process this image, for example, convert to grayscale, and then display the grayscale image via this buffer. how to declare such buffer? thanks. the following is what i loaded image code: JpegData jData; int iWidth, iHeight, iBpp; jpeginfo(path, &jData); iWidth = jData.width; iHeight = jData.length; iBpp = jData.vbitcount; allocimage(&m_vicImg, iWidth, iHeight, iBpp);
Li Zhiyuan
-
dear all i have loaded a jpeg image already, now i would like to process this image, for example, convert to grayscale, and then display the grayscale image via this buffer. how to declare such buffer? thanks. the following is what i loaded image code: JpegData jData; int iWidth, iHeight, iBpp; jpeginfo(path, &jData); iWidth = jData.width; iHeight = jData.length; iBpp = jData.vbitcount; allocimage(&m_vicImg, iWidth, iHeight, iBpp);
Li Zhiyuan
I hope this can help you.