Grayscale image: Difference between revisions
→{{header|FutureBasic}}
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
|||
Line 965:
void local fn BuildWindow
CGRect r = fn CGRectMake( 0, 0, 580, 300 )
window _window, @"Color to Grayscale", r
Line 977 ⟶ 976:
local fn GrayscaleImage( image as ImageRef ) as ImageRef
CGSize size = fn ImageSize( image )
CGRect bounds = fn CGRectMake( 0, 0, size.width, size.height )
Line 1,002 ⟶ 1,000:
HandleEvents
</syntaxhighlight>
{{output}}
[[File:Color to Grayscale.png]]
=={{header|Go}}==
|