@@ -39,7 +39,7 @@ Type TAppOutput
39
39
Global sourceImage:TImage
40
40
Global boneImage:TImage [BONES]
41
41
'Output Settings
42
- Global ZOOM:Int = 2
42
+ Global ZOOM:Int = 1
43
43
Global FRAMES:Int = 7
44
44
Global BACKGROUND_RED:Int = 50
45
45
Global BACKGROUND_GREEN:Int = 170
@@ -58,8 +58,8 @@ Type TAppOutput
58
58
Global angB:Float
59
59
Global angC:Float
60
60
61
- 'Create bone tiles from source image
62
- Function FCreateBoneImage ()
61
+ 'Create limb part tiles from source image
62
+ Function FCreateLimbTiles ()
63
63
Local b:Int , i:Int
64
64
For b = 0 To BONES- 1 'Because I (arne) can't set handles on inidividial anim image frames, I must use my own frame sys
65
65
boneImage[ b] = CreateImage(TILESIZE,TILESIZE,1 ,MASKEDIMAGE)
@@ -83,7 +83,7 @@ Type TAppOutput
83
83
SetMaskColor(255 ,0 ,255 )
84
84
'DrawImage(sourceImage,0,0)
85
85
DrawImageRect(sourceImage,0 ,0 ,ImageWidth(sourceImage)*ZOOM,ImageHeight(sourceImage)*ZOOM)
86
- FCreateBoneImage ()
86
+ FCreateLimbTiles ()
87
87
FLimbBend()
88
88
Flip(1 )
89
89
'FOutputDraw()
@@ -163,7 +163,7 @@ Type TAppOutput
163
163
SetColor(255 ,255 ,255 )
164
164
DrawImageRect(sourceImage,0 ,0 ,ImageWidth(sourceImage)*ZOOM,ImageHeight(sourceImage)*ZOOM)
165
165
If redoBoneImage Then
166
- FCreateBoneImage ()
166
+ FCreateLimbTiles ()
167
167
redoBoneImage = False
168
168
EndIf
169
169
FLimbBend()
@@ -352,7 +352,12 @@ While True
352
352
'Saving
353
353
Case TAppGUI.editSaveButton
354
354
exportedFile = RequestFile(" Save graphic file" ,fileFilers,True )
355
-
355
+ 'Foolproofing
356
+ If exportedFile <> Null Then
357
+ 'Writing new file
358
+ Local tempOutputImage:TPixmap = GrabPixmap(0 ,0 ,640 ,480 )
359
+ SavePixmapPNG(tempOutputImage,exportedFile)
360
+ EndIf
356
361
'Settings textbox inputs
357
362
'Scale
358
363
Case TAppGUI.editSettingsZoomTextbox
0 commit comments