fausztNET's WebLog

Extended Updated Silverlight Surface Demo

I was getting curious of Michael's example and had a look at it. Actually I was pointing the ZIndex mis-behaviour out to him. The Z-Index was set at the this._media and not at the control itself.

public override void SetToFront (int zIndex)
{
   //before: this._media.SetValue<int> (MediaElement.ZIndexProperty, zIndex); 
this.SetValue<int> (Control.ZIndexProperty, zIndex); }

I have added just two other lines in Page.cs:Page_MouseMove. Now scaling is locked if you hold CTRL key while rotation is locked with SHIFT key.

private void Page_MouseMove(object sender, MouseEventArgs e)
{
   //...
   
   if(e.Shift != true)
      this._activeControl.Rotate(num3 - num2);
   
   //...
      
   if(e.Ctrl != true)
      this._activeControl.Scale(num5 / num4);
      
   //...
}

Michael has uploaded it. Live example and download sources.

Posted: Jun 05 2007, 11:13 AM by fausztNET | with 4 comment(s) |
Filed under: , ,
fausztNET.Web.Imaging - a simple Online Image Editor

I have started developing a small and simple web imaging application where you can upload images and edit them. The basics I need very often when I want to publish pictures on a website are Sizing, Cutting and some simple ways of Correcting colors (saturation, brightness, contrast). (you will definitely need Internet Explorer to view).

You can upload an image (or two if you clear your cookies ;-)) and play with the settings. I have limited it to JPGs that are smaller than 100kB. The calculated image will be written to the Response.OutputStream, so your original image will be left unattached.

Thanks in advance for any comments and advices.

Posted: Apr 09 2004, 02:45 AM by fausztNET | with 4 comment(s) |
Filed under:
More Posts