Pixmap manipulation and code optimisation

BlitzMax Forums/BlitzMax Beginners Area/Pixmap manipulation and code optimisation

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

and what you want to do?, add 1 pixel extra to the image? or cut 1 pixel?

anyway you can use pixmapwindow

resize image to 96x96 and cut 1 pixel of image
 For Local i=0 Until MAXFOLGEN
    Local tmppixmap:TPixMap=LoadPixmap("media/"+i+".jpg") ' Load media files 
    fullpixmap.paste(PixmapWindow(ResizePixmap(tmppixmap,ICONSIZE,ICONSIZE),1,1,ICONSIZE-2,ICONSIZE-2),1+i*ICONSIZE,1) 'and paste them to the global pixmap
 Next 
 
 ' Output 
 SavePixmapPNG(fullpixmap, "stripimg.png",9 )


resize image to 94x94 (1 pixel border)
    fullpixmap.paste(ResizePixmap(tmppixmap,ICONSIZE-2,ICONSIZE-2),1+i*ICONSIZE,1)