Recommend this page to a friend! |
Classes of Mark de Leon | PHP Document Scanner using SANE or eSCL AirPrint | toastui/docs/Basic-Tutorial.md | Download |
|
DownloadBasicFollow these 3steps to create image-editor. 1. Load required filesLoad first the dependencies, and then load
2. HTML MarkupImageEditor needs a division element having a canvas element.<br> And the division element must have own (css)height.
3. JavascriptImageEditor constructor needs two parameters.
* The canvas element selector
* Css max width & Css max height
* Set the max width according to the size of your page.
* The max height should be same the height of the division element (in this example,
<br> 4. LocalizationImageEditor provide feature to customize all of inscriptions. Look at example.
<br> Full inscriptions list who can be replaced to custom ones: * 3:2 * 4:3 * 5:4 * 7:5 * 16:9 * Apply * Arrow * Arrow-2 * Arrow-3 * Blend * Blur * Bold * Brightness * Bubble * Cancel * Center * Circle * Color * Color Filter * Crop * Custom * Custom icon * Delete * Delete-all * Distance * Download * Draw * Emboss * Fill * Filter * Flip * Flip X * Flip Y * Free * Grayscale * Heart * Icon * Invert * Italic * Left * Load * Load Mask Image * Location * Mask * Multiply * Noise * Pixelate * Polygon * Range * Rectangle * Redo * Remove White * Reset * Right * Rotate * Sepia * Sepia2 * Shape * Sharpen * Square * Star-1 * Star-2 * Straight * Stroke * Text * Text size * Threshold * Tint * Triangle * Underline * Undo * Value More..See the API page and the sample page * API: http://nhn.github.io/tui.image-editor/latest/ * Sample: http://nhn.github.io/tui.image-editor/latest/tutorial-example01-includeUi.html |