Jump to content
Software FX Community

Painting a thumbnail


User (Legacy)

Recommended Posts

I try to save a thumbnail of the Chart into a JPEG picture. 

This is what I have done:

I first create a memDC (100x100).

then I call:

// paint on the memDC

m_chart.Paint((LONG)memDC.m_hDC, 0, 0, 100, 100, CPAINT_BKGND, 0);

// show it on the screen

CDC *pdc = CDC::FromHandle (::GetDC (NULL));

pdc->BitBlt (0, 0, 100, 100, &memDC, 0, 0, SRCCOPY);

// ... save as jpeg....

........

What I got is a small picture.

I wonder how you guys did it in the print preview. I would love to save that

tiny picture as a thumbnail.

Thanks

Frank Liang

Broadbase Software.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...