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.


Frank Liang

Broadbase Software.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...