Bitmap/Read a PPM file: Difference between revisions

Content added Content deleted
m (Correct error in text formatting.)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 3,520: Line 3,520:
{{libheader|DOME}}
{{libheader|DOME}}
This assumes that [https://rosettacode.org/wiki/File:Lenna100.jpg Lenna100.jpg], a 512 x 512 color image of the eponymous lady, has already been converted to Lenna100.ppm using a variation of the 'Write a PPM file' task.
This assumes that [https://rosettacode.org/wiki/File:Lenna100.jpg Lenna100.jpg], a 512 x 512 color image of the eponymous lady, has already been converted to Lenna100.ppm using a variation of the 'Write a PPM file' task.
<syntaxhighlight lang="ecmascript">import "graphics" for Canvas, ImageData, Color
<syntaxhighlight lang="wren">import "graphics" for Canvas, ImageData, Color
import "dome" for Window, Process
import "dome" for Window, Process
import "io" for FileSystem
import "io" for FileSystem
Line 3,595: Line 3,595:


var Game = Bitmap.new("Lenna100.ppm", "Lenna100_gs.jpg", 1048, 512)</syntaxhighlight>
var Game = Bitmap.new("Lenna100.ppm", "Lenna100_gs.jpg", 1048, 512)</syntaxhighlight>

=={{header|XPL0}}==
=={{header|XPL0}}==
The simplicity of redirecting an input file on the command line doesn't
The simplicity of redirecting an input file on the command line doesn't