The program listed here next is to show how you put together a series of commands to send to IM. ' Give it 2 seconds to execute (may not be enough for large images)įiledialog "Save graphic to RamDisk as another image type eg gif, tif, png, jpg, bmp.", "*.*", fileName2$ ' ie put chr$( 34) either side of the file/pathname. ' Note if your directory or file names include spaces you have to add the quote here. ' load chosen image remove transparency resize save temporarily as bmp. Now see how I'd use IM to allow any image to be loaded, sized to fit, and re-saveable under any name.įiledialog "Open any image file eg ", "*.gif *.jpg *.bmp", fileName$ If fileName2$ "" and fileName2$ fileName$ then Open "Using IM to load and save" for window as #wįiledialog "Open bmp", "*.bmp", fileName$įiledialog "Save graphic as bmp.", "*.bmp", fileName2$ It offers the chance to resave- which will give you again a bmp of the ( probably clipped) original. Here is a LB program to load and show a bitmap. I use it to rotate images create animated GIFs. I use it to convert image types, so BASIC can load or save more than just bmp images. Since the command line is 'run'nable from LB or JB ( & RunBASIC too!), all of ImageMagick's strength is available to the programmer. With it you can load and save as pdf or ps or png, as well as the space-saving gif & jpg.Īvailable on Windows & Linux, it is 'driven' by commands ( scripts) from the command line ( Linux terminal). Image Magick ( & the closely related GraphicMagick) is a major project to create, modify & improve an OpenSource piece of software which creates, modifies and converts images of every conceivable format. Using ImageMagick from Liberty & Just Basic
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |