1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
image (const image &cSource)
{
Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
framecount=cSource.framecount;
clrBackColor=cSource.clrBackColor;
strfilename=cSource.strfilename;
framedelay =cSource.framedelay;
imageweight=cSource.imageweight;
imageheight=cSource.imageheight;
img=new Image(towstring(strfilename).c_str());
btBitmap=CreateBitmap(imageweight,imageheight,1,32,NULL);
obj = SelectObject(hdcimage, btBitmap);
BitBlt(hdcimage,0,0,imageweight,imageheight,cSource.hdcimage,0,0,SRCCOPY);
}
image& operator= (const image &cSource)
{
Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
framecount=cSource.framecount;
clrBackColor=cSource.clrBackColor;
strfilename=cSource.strfilename;
framedelay =cSource.framedelay;
imageweight=cSource.imageweight;
imageheight=cSource.imageheight;
img=new Image(towstring(strfilename).c_str());
btBitmap=CreateBitmap(imageweight,imageheight,1,32,NULL);
obj = SelectObject(hdcimage, btBitmap);
BitBlt(hdcimage,0,0,imageweight,imageheight,cSource.hdcimage,0,0,SRCCOPY);
return *this;
}
//.........
void Picture(const image &imgIcon)
|