Rank: Member
Groups: Guest
Joined: 3/15/2012(UTC) Posts: 12
Thanks: 1 times
|
I am trying to invoke a remote method through JS: function Flip(){ var frontPsdEditor = $find("<%= ClientID %>"); var cv = frontPsdEditor.get_canvas(); cv.invokeRemoteMethod("FlipImage"); cv.redraw(); } The server code: [Aurigma.GraphicsMill.AjaxControls.RemoteScriptingMethod()] public void FlipImage(Object sender, CommandEventArgs e) { var imageLayer = CanvasViewer.Canvas.Layers.Where(l => l.Name == "imageUG").FirstOrDefault(); ImageVObject imgorg = (ImageVObject)CanvasViewer.Canvas.CurrentVObject; var bitmaporg = (Aurigma.GraphicsMill.Bitmap)imgorg.Bitmap; Aurigma.GraphicsMill.Transforms.RotateAndFlip rotateAndFlip = new Aurigma.GraphicsMill.Transforms.RotateAndFlip(); rotateAndFlip.Mode = System.Drawing.RotateFlipType.RotateNoneFlipX; rotateAndFlip.ApplyTransform(bitmaporg); } The VObject is not updated after applying the Flip? What am I missing? Marc
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello Marco, <%= ClientID %> returns "__Page". You should set the correct ID of the canvasViewer. Please check it. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Newbie
Groups: Guest
Joined: 3/15/2020(UTC) Posts: 1
|
Useful and informative shared you have published with us . Liked and appreciate your post, thanks .
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.