Bitmap/Histogram: Difference between revisions

m
→‎{{header|Wren}}: ImageData.loadFromFile now deprecated, changed to ImageData.load
m (→‎{{header|Forth}}: add a working GnuForth 0.7.x version →‎{{header|GnuForth 0.7}})
m (→‎{{header|Wren}}: ImageData.loadFromFile now deprecated, changed to ImageData.load)
 
(2 intermediate revisions by 2 users not shown)
Line 536:
[#### ]
</syntaxhighlight>
Call it from an array
0 toto swap cells + @ 10 5 bar \ draws bar from first item of toto array
 
=={{header|Fortran}}==
Line 1,738 ⟶ 1,740:
=={{header|Wren}}==
{{libheader|DOME}}
<syntaxhighlight lang="ecmascriptwren">import "dome" for Window
import "graphics" for Canvas, Color, ImageData
 
class ImageHistogram {
construct new(filename, filename2) {
_image = ImageData.loadFromFileload(filename)
Window.resize(_image.width, _image.height)
Canvas.resize(_image.width, _image.height)
Line 1,823 ⟶ 1,825:
 
var Game = ImageHistogram.new("Lenna100.jpg", "Lenna100_B&W.png")</syntaxhighlight>
 
=={{header|zkl}}==
{{trans|C}}
9,476

edits