Skip to content

Commit

Permalink
Doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Jan 28, 2025
1 parent a0d762e commit deb6861
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions resources/doc/tutorials/view-create.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ Summary:

The view creation is triggered when calling the `app.render` method. It can also be triggered
when the app receives a `loaditem` event if the application options contain a true `viewOnFirstLoadItem`.

![sequence-view-creation](sequence-view-creation.png)
The process consists in taking an image slice and creating an HTML [canvas](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas) that represents it.

The library will use a series of steps and LookUp Tables (LUT) to convert the file data into the
canvas array data:
Expand All @@ -27,6 +26,10 @@ canvas array data:
(see [image/windowLut.js](./WindowLut.html))
1. Assign a colour to each values using a colour map
(see [image/luts.js](./global.html#luts))
1. You now have the canvas data!
1. You now have the [canvas](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas) data!

![sequence-view-creation](sequence-view-creation.png)

*View generation sequence.*

All this is materialised in the `generateImageData*` functions.
All this is materialised in the `generateImageData*` functions called from the [View](./View.html) class.

0 comments on commit deb6861

Please sign in to comment.