This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
wdweb  
#1 Posted : Wednesday, January 24, 2007 2:02:16 AM(UTC)
wdweb

Rank: Member

Groups: Guest
Joined: 3/21/2006(UTC)
Posts: 2

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

Edited by user Tuesday, December 18, 2007 5:10:39 PM(UTC)  | Reason: Not specified

joseph derrigan

wdweb company

Andrew  
#2 Posted : Monday, February 5, 2007 3:53:25 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Guest
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
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.

Edited by user Tuesday, December 18, 2007 5:21:36 PM(UTC)  | Reason: Not specified

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.