This is a stupid question, but I just can't find a good way. How do you create the single *.bmp file with the toolbar images side by side?
I need custom toolbar icons not included in the standard toolbar images.
thanks for the help
create Toolbar images
-
RJP Computing
- Enthusiast

- Posts: 202
- Joined: Sun Apr 27, 2003 4:44 am
- Location: Michigan, USA
- Contact:
create Toolbar images
-Ryan
RJP Computing
Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
RJP Computing
Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
hello,
if you speak about toolbar provided by the PureTools_I library,
personally i use Paint
If i need 5 images in 32x32, i set in the menu -> images -> attributes -> 160 x 32 and then i just play with copy/paste or i draw all pics.
if you speak about toolbar provided by the PureTools_I library,
personally i use Paint
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
-
RJP Computing
- Enthusiast

- Posts: 202
- Joined: Sun Apr 27, 2003 4:44 am
- Location: Michigan, USA
- Contact:
it's easy do make a little program to stick multiple images in one...
hmmm, let me think a little...
Well, this piece of code does the work
hmmm, let me think a little...
Well, this piece of code does the work
Code: Select all
dir.s = "C:\DEV\PureBasic\Examples\Sources - Advanced\Waponez II\Data\"
CreateImage( 0, 6 * 50, 36 )
ImageOutput()
For i=1 To 6
LoadImage( i, dir+"Ennemy_3_" + Str( i )+ ".bmp" )
UseImage( 0 )
StartDrawing( ImageOutput() )
DrawImage( UseImage( i ), (i-1) * 50, 0 )
StopDrawing()
Next
;OpenWindow(0,200,200,300,200,0,"")
;StartDrawing( WindowOutput() )
; DrawImage( UseImage( 0 ), 0, 0 )
;StopDrawing()
;Delay( 5000 )
file.s = SaveFileRequester( "Save Images...", "WaponezSprites.bmp", "Bitmap|*.bmp", 0 )
If file <> ""
SaveImage( 0, file, #PB_ImagePlugin_BMP )
MessageRequester( "Report", "Sprites Saved !", 0 )
EndIf
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
-
RJP Computing
- Enthusiast

- Posts: 202
- Joined: Sun Apr 27, 2003 4:44 am
- Location: Michigan, USA
- Contact:
THAT IS AWSOME. 8O Duh I should of thought of making my own.Flype wrote:it's easy do make a little program to stick multiple images in one...
hmmm, let me think a little...
Well, this piece of code does the work
Code: Select all
dir.s = "C:\DEV\PureBasic\Examples\Sources - Advanced\Waponez II\Data" CreateImage( 0, 6 * 50, 36 ) ImageOutput() For i=1 To 6 LoadImage( i, dir+"Ennemy_3_" + Str( i )+ ".bmp" ) UseImage( 0 ) StartDrawing( ImageOutput() ) DrawImage( UseImage( i ), (i-1) * 50, 0 ) StopDrawing() Next ;OpenWindow(0,200,200,300,200,0,"") ;StartDrawing( WindowOutput() ) ; DrawImage( UseImage( 0 ), 0, 0 ) ;StopDrawing() ;Delay( 5000 ) file.s = SaveFileRequester( "Save Images...", "WaponezSprites.bmp", "Bitmap|*.bmp", 0 ) If file <> "" SaveImage( 0, file, #PB_ImagePlugin_BMP ) MessageRequester( "Report", "Sprites Saved !", 0 ) EndIf
Thanks
-Ryan
RJP Computing
Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
RJP Computing
Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
