Forums

Welcome Guest Search | Active Topics | Members

Saving New File Options
wdweb
Posted: Wednesday, January 24, 2007 10:02:16 AM
Rank: Member
Groups: Member

Joined: 3/21/2006
Posts: 2
Points: 0
I've followed the DevGuide included in your source. The instructions are unclear on how to invoke the save as new method. I really don't see any example on how to implement the BitmapManager class. For example, where exactly am I supposed to pass the new image path? The doc states: "They are invocated by the editor control every time when the user clicks Replace Old or Save as New links.". All that happens for me is a redirect to my default.aspx location of my project.

Here is the codebehind for the page that loads the photoeditor component:

*croppingtool.aspx.vb

Code:
Imports Aurigma.PhotoEditor
Imports Aurigma.PhotoEditor.Data
Imports Aurigma.GraphicsMill
Imports Aurigma.PhotoEditor.Data.BaseBitmapManager
Public Class croppingtool
      Inherits mpdigitalphotoprints.baseclass

#Region " Web Form Designer Generated Code "

      'This call is required by the Web Form Designer.
      <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

      End Sub

      'NOTE: The following placeholder declaration is required by the Web Form Designer.
      'Do not delete or move it.
      Private designerPlaceholderDeclaration As System.Object

      Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
            'CODEGEN: This method call is required by the Web Form Designer
            'Do not modify it using the code editor.
            InitializeComponent()
      End Sub

#End Region

      Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            'Put user code to initialize the page here
            loadCropTool(Request.QueryString("p"))            
      End Sub
      Function loadCropTool(ByVal strServerPath)
            Response.Write("load this image into crop tool: " & strServerPath.ToString())
            Dim objEditor As Editor = Me.FindControl("editor")
            objEditor.MediumQualityDpi = 300
            objEditor.HighQualityDpi = 400
            objEditor.DebugMode = True
            objEditor.Visible = False
            objEditor.OriginalPath = Server.MapPath("../" & strServerPath)
            'objEditor.OriginalPath = Server.MapPath("uploaded/images/53fe031c_2000-05-11_13_40_14.jpg")
            objEditor.Visible = True
      End Function
      Function SaveCroppedImage()

      End Function
End Class



joseph derrigan
wdweb company
Andrew
Posted: Monday, February 05, 2007 11:53:25 PM

Rank: Advanced Member
Groups: Administration , Member

Joined: 8/2/2003
Posts: 708
Points: 105
Sorry for a late answer.

I did not notice where you assign a BitmapManager property of an Editor control to an instance of your class. It should be looking like that:

Code:
' Insert the implementation of a bitmap manager class called, say, MyBitmapManager

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim objEditor As Editor = Me.FindControl("editor")
objEditor.BitmapManager = New MyBitmapManager
...

End Sub


Hope this helps.

Sincerely yours,
Andrew Simontsev from Aurigma Team
Users browsing this topic
Guest


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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.