create Toolbar images

Windows specific forum
RJP Computing
Enthusiast
Enthusiast
Posts: 202
Joined: Sun Apr 27, 2003 4:44 am
Location: Michigan, USA
Contact:

create Toolbar images

Post by RJP Computing »

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
-Ryan
RJP Computing

Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

hello,

if you speak about toolbar provided by the PureTools_I library,
personally i use Paint :lol: 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.
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
RJP Computing
Enthusiast
Enthusiast
Posts: 202
Joined: Sun Apr 27, 2003 4:44 am
Location: Michigan, USA
Contact:

Post by RJP Computing »

yes that is what I mean. Thanks. I was just hoping there was some cool program that could combine 5 16x16 BMP into that image. No big deal. That sounds doable.
-Ryan
RJP Computing

Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

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
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
RJP Computing
Enthusiast
Enthusiast
Posts: 202
Joined: Sun Apr 27, 2003 4:44 am
Location: Michigan, USA
Contact:

Post by RJP Computing »

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
THAT IS AWSOME. 8O Duh I should of thought of making my own.

Thanks
-Ryan
RJP Computing

Ubuntu 8.10/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, nVidia GeForce 7600GT 512MB
Post Reply