Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CreateThumbnail in "gdi32" ? 2

Status
Not open for further replies.

GPerk

Programmer
Jul 6, 2002
161
0
0
US
Is there an API function called CreateThumbnail?

If so, what is the declaration?
 
No, not natively.

GDI+ has a thumbnailing function:

Private Declare Function GdipGetImageThumbnail Lib "GDIPlus" ( _
ByVal Image As Long, _
ByVal thumbWidth As Long, _
ByVal thumbHeight As Long, _
thumbImage As Long, _
ByVal callback As Long, _
ByVal callbackData As Long) As Long


but you'll need to do a bit of research to figure out how to use GDI+ from VB6 (a keyword search in this forum should find some of my examples - but they do not include thumbnailing)
 
Strongm, thank you for the response.
This is the first time I have heard of GDI+.
It appears I have a lot to learn.

I saw one of your posts which includes this:

Dim GpInput As GdiplusStartupInput
Dim Token As Long
. . .
GpInput.GdiplusVersion = 1
If GdiplusStartup(Token, GpInput) <> Ok Then
MsgBox "Error loading GDI+!", vbCritical
Else
GdipCreateFromHDC Picture2.hDC, gdiGraphics

Does this mean that GDI+ is something like an API file?
And that it is loaded at runtime?
How do I check that I have GDI+ on my harddrive?
Any further pointer you can provide will be appreciated.

 
GDI+ is Microsoft's 'next generation' version of GDI, which is a set of API calls that "... enable applications to use graphics and formatted text on both the video display and the printer."

If you've got XP (or W2003) then you have got GDI+ already. It is also available as an easily download/install redistributable (you can send it out with any application you write) from Microsoft for Windows NT 4.0 SP6, Windows 2000, Windows 98, and Windows Me:
 
Try this.

&quot;Life is full of learning, and then there is wisdom&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top