Forums

Welcome Guest Search | Active Topics | Members

How to select an image other than redeye.jpg? Options
bill
Posted: Wednesday, September 27, 2006 10:14:27 AM
Rank: Member
Groups: Member

Joined: 9/27/2006
Posts: 2
Points: 0
We're new purchasers of this product and i've been given this ball to carry. I've been asked to get the tool up and running for users to upload, edit, and save images. Just the basics. The Samples\QuickStartVB\ content is working fine, but has no active upload or save functionality. I can add that myself, and have, but now I am completely at a loss as to how to get the editor to use any picture other than 'redeye.jpg'. What am I missing?

I have searched everywhere i could think of, and though the devmanual offers up some code, it's very spare and doesn't work, even when i copy and paste word for word. i have tried working back through the various aspx, aspx.vb, ascx, and ascx.vb files, but I can't figure out where to make that change, so that it will have an effect.

I have edited the following line in the default.aspx file:
Code:
objEditor.OriginalPath = Server.MapPath("TestImages\redeye.jpg")

but that made no difference whatsoever. I have done global searches for other references to 'redeye.jpg' in the files and subfolders, but found nothing beyond the image itself in the TestImages folder.

I know I'm missing something incredibly basic, but I can't see the forest for the trees anymore.

And why isn't this clearly explained in the devmanual.pdf?

any help will be greatly appreciated. Again, i'm sure it's easy; I just can't see it.
Andrew
Posted: Tuesday, October 03, 2006 2:53:17 AM

Rank: Advanced Member
Groups: Administration , Member

Joined: 8/2/2003
Posts: 709
Points: 108
Modifying OriginalPath property of the Editor control is what you need. Could you post the codebehind of the page which hosts the PhotoEditor?

Sincerely yours,
Andrew Simontsev from Aurigma Team
bill
Posted: Friday, October 27, 2006 6:11:14 AM
Rank: Member
Groups: Member

Joined: 9/27/2006
Posts: 2
Points: 0
I've tried editing the OriginalPath entry, but none of the changes I've made have taken effect.

Here's the codebehind page (default.aspx.vb)

As you can see, I've only edited the name of the image to a test.jpg image I placed there, but still no change. I don't even get an error. I simply get the stock redey.jpg image. What am I missing?



Code:
Namespace Aurigma.PhotoEditor.Samples

      Public Class MainForm
            Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

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

            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 objPhotoEditor As Editor

            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
                  Dim objEditor As Editor = Me.FindControl("editor")
                  objEditor.MediumQualityDpi = 300
                  objEditor.HighQualityDpi = 400
                  objEditor.DebugMode = True
                  objEditor.OriginalPath = Server.MapPath("TestImages\test.jpg")
                  objEditor.BitmapManager = New Data.DefaultBitmapManager
                  objEditor.TitleHtml = " "
            End Sub

      End Class

End Namespace
Victor
Posted: Monday, October 30, 2006 12:57:24 AM
Rank: Member
Groups: Member

Joined: 10/4/2006
Posts: 9
Points: 0
Have you rebuild the PhotoEditorProject?
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.