Home > Software engineering >  Refer new getdocument is empty
Refer new getdocument is empty

Time:10-03

Void CRDWImageView: : OnTrans ()
{
//TODO: add the command handler code
CRDWImageDoc * pDoc=GetDocument ();
ASSERT_VALID (pDoc);

/* if (pDoc - & gt; Image==nullptr) return; */
PDoc - & gt; M_pBits=(unsigned char *) pDoc - & gt; Image - & gt; ImageData;
Unsigned char * pBits=pDoc - & gt; M_pBits;

I'm trying to do with the linear transformation in the resource view added a "linear transformation" control, it is a part of its corresponding function, open a BMP image after the prompt me to obtain a pointer to an empty, but the JPG image is no problem, by the way, BMP image read was written by yourself, JPG with cvloadiamge open, thank you, help me,

CodePudding user response:

You need to check your View class and class whether to establish a link between the Doc document, see the App InitInstance function of a class
  • Related