func Main(gc draw2d.GraphicContext, ext string) (string, error) {
	gc.Save()

	// flip the image
	gc.Translate(0, 200)
	gc.Scale(0.35, -0.35)
	gc.Translate(70, -200)

	// Tiger postscript drawing
	tiger := samples.Resource("image", "tiger.ps", ext)

	// Draw tiger
	Draw(gc, tiger)
	gc.Restore()

	// Return the output filename
	return samples.Output("postscript", ext), nil
}
func Main(gc draw2d.GraphicContext, ext string) (string, error) {
	gc.Save()

	
	gc.Translate(0, 200)
	gc.Scale(0.35, -0.35)
	gc.Translate(70, -200)

	
	tiger := samples.Resource("image", "tiger.ps", ext)

	
	Draw(gc, tiger)
	gc.Restore()

	
	return samples.Output("postscript", ext), nil
}
func Main ( gc draw2d . GraphicContext , ext string ) ( string , error ) { gc . Save ( ) // flip the image gc . Translate ( 0 , 200 ) gc . Scale ( 0.35 , - 0.35 ) gc . Translate ( 70 , - 200 ) // Tiger postscript drawing tiger := samples . Resource ( " " , " " , ext ) // Draw tiger Draw ( gc , tiger ) gc . Restore ( ) // Return the output filename return samples . Output ( " " , ext ) , nil }
// Main draws the tiger
Main draws the tiger