PHP Classes

File: WITheme/WICMS/admin/js/plugins/textEditor/tinymce_4.2.6_dev/tinymce/js/tinymce/plugins/imagetools/classes/Canvas.js

Recommend this page to a friend!
  Classes of Jules Warner   WICMS   WITheme/WICMS/admin/js/plugins/textEditor/tinymce_4.2.6_dev/tinymce/js/tinymce/plugins/imagetools/classes/Canvas.js   Download  
File: WITheme/WICMS/admin/js/plugins/textEditor/tinymce_4.2.6_dev/tinymce/js/tinymce/plugins/imagetools/classes/Canvas.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WICMS
Database driven content management system with PDO
Author: By
Last change:
Date: 7 years ago
Size: 691 bytes
 

Contents

Class file image Download
/** * Canvas.js * * Released under LGPL License. * Copyright (c) 1999-2015 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ /** * Contains various canvas functions. */ define("tinymce/imagetoolsplugin/Canvas", [], function() { function create(width, height) { return resize(document.createElement('canvas'), width, height); } function get2dContext(canvas) { return canvas.getContext("2d"); } function resize(canvas, width, height) { canvas.width = width; canvas.height = height; return canvas; } return { create: create, resize: resize, get2dContext: get2dContext }; });