<%@ Control Language="C#" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI.Editor" TagPrefix="tools" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI.Widgets" TagPrefix="widgets" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI.Dialogs" TagPrefix="dialogs" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> <%-- /* //======================== Abstraction that will present an image ready for manipulation =======================================// Telerik.Web.UI.Widgets.EditableImageMozilla = function(image) { Telerik.Web.UI.Widgets.EditableImageMozilla.initializeBase(this, [image]); } //Since it occurs that there is no easy way to implement FLIP functionality in Moz?!!!?, even with Canvas, for time being we comment this implementation Telerik.Web.UI.Widgets.EditableImageMozilla.prototype = { initialize : function() { // Call parent Telerik.Web.UI.Widgets.EditableImageMozilla.callBaseMethod(this, "initialize"); this._canvas = document.createElement("canvas"); this._supportsCanvas = (!!this._canvas.getContext); if (this._supportsCanvas) { var img = this._image; var canvas = this._canvas; canvas.width = img.offsetWidth; canvas.height = img.offsetHeight; var ctx = canvas.getContext("2d"); ctx.globalAlpha = .5; ctx.drawImage(img, 0, 0, img.offsetWidth, img.offsetHeight);//1, 0, i, img.offsetWidth, 1); img.parentNode.insertBefore(canvas, img); img.style.display = "none"; } }, //Will be different in different browsers _customInitialize : function() { //Set all filters to the image (TODO: the matrix filter in the future too) //this._image.style.filter = "flipH flipV"; }, dispose : function() { }, //====================================== Getters ==============================================// get_width : function() { return this._canvas.width; }, get_height : function() { return this._canvas.height; }, //====================================== Setters =============================================// //Size Can be in percents too, so we will peform no checks on validity of input setSize : function(width, height) { var canvas = this._canvas; canvas.width = width; canvas.height = height; }, //================================ Browser dependent methods ===================================================// _updateFlipUI : function() { var horiz = this._flipHorizontal; var vertical = this._flipVertical; var canvas = this._canvas; var ctx = canvas.getContext("2d"); //ctx.rotate(); //ctx.drawImage(img, 0, 0, img.offsetWidth, img.offsetHeight);//1, 0, i, img.offsetWidth, 1); } } Telerik.Web.UI.Widgets.EditableImageMozilla.registerClass('Telerik.Web.UI.Widgets.EditableImageMozilla', Telerik.Web.UI.Widgets.EditableImage); */--%>
 
%
px
px