|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Writing bitmaps as their own fileReading through the documentation, it appears bitmaps can only be
written out into stream files (buffer.write). I'm writing a bitmap editor and would like to save the images back out to the card. Would this require something outside of Plua? |
|
|
Re: Writing bitmaps as their own file--- glasspin <glasspin@...> wrote: > Reading through the documentation, it appears > bitmaps can only be > written out into stream files (buffer.write). I'm > writing a bitmap > editor and would like to save the images back out to > the card. Would > this require something outside of Plua? > > buffer.write(filename[,id]) command will write the buffer identified by "id", in the file "filename". Hope this helps. |
|
|
Re: Writing bitmaps as their own file--- In plua@..., Berkant Atay <berkant_atay@...> wrote:
> > > --- glasspin <glasspin@...> wrote: > > > Reading through the documentation, it appears > > bitmaps can only be > > written out into stream files (buffer.write). I'm > > writing a bitmap > > editor and would like to save the images back out to > > the card. Would > > this require something outside of Plua? > > > > > > buffer.write(filename[,id]) command will write the > buffer identified by "id", in the file "filename". > Hope this helps. > 4.2.1 in the plua doc. |
|
|
Re: Writing bitmaps as their own file--- Berkant Atay <berkant_atay@...> wrote: > > --- glasspin <glasspin@...> wrote: > > > Reading through the documentation, it appears > > bitmaps can only be > > written out into stream files (buffer.write). I'm > > writing a bitmap > > editor and would like to save the images back out > to > > the card. Would > > this require something outside of Plua? > > > > > > buffer.write(filename[,id]) command will write the > buffer identified by "id", in the file "filename". > Hope this helps. > Hi again, buffer.write can write onto the SD card as well as internal memory. For example, last night I checked if I can resize bitmaps in Plua. First reading my bike's bitmap photograph from the card, and then creating a new buffer with a smaller pic, and saving the finalized .bmp file seems to be easy, but Plua is far too slow.. The line: write.buffer("vfs0:/PALM/PROGRAMS/Plua/SRC/SuzukiGSR600K7halfthesize.bmp",bufnew) will create a bitmap file of my bike's pic, as a bitmap file that can be read by all OS's.. Regards, Berkant. |
|
|
Re: Writing bitmaps as their own fileConfirmed. It works with a new buffer, so there must be something
wrong with the buffer I'm sending where the function returns nil. Thanks for your help and pointing me in a the right direction! --- In plua@..., Berkant Atay <berkant_atay@...> wrote: > > > --- Berkant Atay <berkant_atay@...> wrote: > > > > > --- glasspin <glasspin@...> wrote: > > > > > Reading through the documentation, it appears > > > bitmaps can only be > > > written out into stream files (buffer.write). I'm > > > writing a bitmap > > > editor and would like to save the images back out > > to > > > the card. Would > > > this require something outside of Plua? > > > > > > > > > > buffer.write(filename[,id]) command will write the > > buffer identified by "id", in the file "filename". > > Hope this helps. > > > > Hi again, > > buffer.write can write onto the SD card as well as > internal memory. For example, last night I checked if > I can resize bitmaps in Plua. First reading my bike's > bitmap photograph from the card, and then creating a > new buffer with a smaller pic, and saving the > finalized .bmp file seems to be easy, but Plua is far > too slow.. The line: > > > > will create a bitmap file of my bike's pic, as a > bitmap file that can be read by all OS's.. > > Regards, > > Berkant. > |
| Free embeddable forum powered by Nabble | Forum Help |