PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Thumbnails

HI

I am new to this forum, and was wondering if anyone knows how I can create and save thumbnails using GapiDraw. I would like the image browser I am developing to run on the pocket pc. I want to be able to read in most common file types and generate png thumbnails and save them.

I would appreciate any comments

regards

Dynz
I haven't tried this to verify it, but you could create a surface that is the size of the thumbnail you desire, then copy your full size image surface to the thumbnail surface allowing GD to scale it down (or use whatever scaling algorithm you want). Then simply save the thumbnail surface using SaveSurface.