Anonymous user
Bitmap: Difference between revisions
→{{header|FSharp|F#}}
No edit summary |
|||
Line 1,102:
color = image[400][300] -- Now color is #FF0000</lang>
=={{header|
FSharp can accomplish this task in several ways. This version is purely functional. The bitmap data structure does not mutate. Set pixel, for example, simply transforms the input bitmap into a new bitmap with that pixel set to the input color. If you have Framework 4.5, you can use ImmutableArray to force this immutability.
|