This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2011-05-16 12:41:54

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: save picture of stage

johnnydean1 wrote:

scimonster wrote:

johnnydean1 wrote:

Cracked it:

exportFileName: fileName

    | form fName |
    form _ self stageShotForm.
    form depth <= 8 ifTrue: [
        (fileName asLowercase endsWith: '.png')
            ifTrue: [fName _ fileName]
            ifFalse: [fName _ fileName, '.png'].
        GIFReadWriter putForm: form colorReduced8Bit onFileNamed: fName.
        ^ self].

    (fileName asLowercase endsWith: '.png')
        ifTrue: [fName _ fileName]
        ifFalse: [fName _ fileName, '.png'].
    (form asFormOfDepth: 32) writeBMPFileNamed: fName.

It can't write a PNG called name.bmp or name.gif
Just physically impossible.

Have you actually tried it?

Well, no...

Offline

 

#27 2011-05-16 13:43:00

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: save picture of stage

This still added as a costume as a gif.  hmm


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

Board footer