Bitmap/Oz: Difference between revisions
Content added Content deleted
m (moved Basic bitmap storage/Oz to Bitmap/Oz) |
m (Fixed syntax highlighting.) |
||
Line 2: | Line 2: | ||
<code>Array.oz</code>: |
<code>Array.oz</code>: |
||
< |
<syntaxhighlight lang="oz">functor |
||
export |
export |
||
New |
New |
||
Line 80: | Line 80: | ||
end |
end |
||
end |
end |
||
end</ |
end</syntaxhighlight> |
||
<code>Bitmap.oz</code>: |
<code>Bitmap.oz</code>: |
||
< |
<syntaxhighlight lang="oz">%% For real task prefer QTk's images: |
||
%% http://www.mozart-oz.org/home/doc/mozart-stdlib/wp/qtk/html/node38.html |
%% http://www.mozart-oz.org/home/doc/mozart-stdlib/wp/qtk/html/node38.html |
||
Line 135: | Line 135: | ||
{Array2D.transform Arr Fun} |
{Array2D.transform Arr Fun} |
||
end |
end |
||
end</ |
end</syntaxhighlight> |
||
<code>makefile.oz</code>: |
<code>makefile.oz</code>: |
||
< |
<syntaxhighlight lang="oz">makefile( |
||
lib:['Array2D.ozf' 'Bitmap.ozf'] |
lib:['Array2D.ozf' 'Bitmap.ozf'] |
||
)</ |
)</syntaxhighlight> |