- GetClientRect(&rect);
- std::vector<unsigned char> m_dataGraph;
- m_dataGraph.resize(rect.Width() * rect.Height() * 24);
- glReadPixels(0,0,rect.Width(),rect.Height(),GL_RGB,GL_UNSIGNED_BYTE,&m_dataGraph[0]);
- . . .
- HPDF_Image pic = HPDF_LoadRawImageFromMem(pdf,&m_dataGraph[0],m_rect.Width(),m_rect.Height(),HPDF_CS_DEVICE_RGB,8);