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 "
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
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.Visible = True
End Function
Function SaveCroppedImage()
End Function
End Class
joseph derrigan
wdweb company