Rank: Advanced Member
Groups: Guest
Joined: 2/27/2010(UTC) Posts: 74
|
hello is it possible to change the "name" attribute to an "id" attribute in the "tabs" region and the "layers" region ? using "name" is not valid XHTML1 ? is it possible to load an image directly in to the editor region ?
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/9/2008(UTC) Posts: 554
Was thanked: 1 time(s) in 1 post(s)
|
Hi, Quote:is it possible to change the "name" attribute to an "id" attribute in the "tabs" region and the "layers" region ? using "name" is not valid XHTML1 ? Our developers will prepare new version for you. It will be available next week. Quote:is it possible to load an image directly in to the editor region ? Could you please describe this problem a bit detailed. |
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 2/27/2010(UTC) Posts: 74
|
thanks about the second question: instead of using an image from the "Images/Labels" folder, i want the user to be able to add his own image. the loading of the image to the server is not a problem, just how do i add it directly as the bottom layer of the editor window ?
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/9/2008(UTC) Posts: 554
Was thanked: 1 time(s) in 1 post(s)
|
Hi, Thanks to explanation. Yes, it is possible. After your customer added own file, you should save it on your server. Now you can load this file as background in Gift Editor (PhotoLabelSample.aspx.cs Line:185): Code:photoLabel.BackgroundImage = file;
Where file is the path of uploaded file. |
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 2/27/2010(UTC) Posts: 74
|
thanks for the quick reply Tamila, but i was talking about the active region not the entire background. also how do i set a circular active region instead of a rectangular one ? thanks again
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 6/16/2009(UTC) Posts: 134
Was thanked: 8 time(s) in 8 post(s)
|
Hi! This is example how you can add an image into region: Code:
protected void addImageBtn_Click(object sender, EventArgs e)
{
// Save uploaded file
string filePath = MapPath("~/Saves/" + FileUpload1.FileName);
FileUpload1.SaveAs(filePath);
// Get current selected region
Layer l = photoLabel.CanvasViewer.Canvas.CurrentLayer;
RectangleRegion r = l.Region;
// Create ImageVObject
ImageVObject imgVObject = new ImageVObject(new FileInfo(filePath));
// Resize image to fit into region
float dx = imgVObject.Width / r.Width;
float dy = imgVObject.Height / r.Height;
if (dx < dy)
{
imgVObject.Width = imgVObject.Width / dy;
imgVObject.Height = imgVObject.Height / dy;
}
else
{
imgVObject.Width = imgVObject.Width / dx;
imgVObject.Height = imgVObject.Height / dx;
}
// Place image into region
imgVObject.Location = new Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math.PointF(r.Left, r.Top);
// Set supported actions
imgVObject.SupportedActions = VObjectAction.Drag | VObjectAction.ProportionalResize;
// Add image to canvas
l.VObjects.Add(imgVObject);
}
Quote:also how do i set a circular active region instead of a rectangular one ? Unfortunately, only rectangular region supported. |
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 2/27/2010(UTC) Posts: 74
|
thanks for the quick reply - working perfectly. about the circle - is it going to be in the next version ? also I've seen something about an ellipse region or something in the documentation, and if we're talking about curved lines - is it possible to do curved text ? thanks
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/9/2008(UTC) Posts: 554
Was thanked: 1 time(s) in 1 post(s)
|
Hi, Quote:is it possible to change the "name" attribute to an "id" attribute in the "tabs" region and the "layers" region ? using "name" is not valid XHTML1 ? New version is already available. You can download it here. Quote:about the circle - is it going to be in the next version ? also I've seen something about an ellipse region or something in the documentation, and if we're talking about curved lines - is it possible to do curved text ? Curved text is not supported too. Unfortunately we do not plan to add such functionality in the nearest future. Edited by user Tuesday, June 8, 2010 1:22:33 AM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 2/27/2010(UTC) Posts: 74
|
strange thing: as I've written above, the code to load an image as a background works great, just one strange thing happening with it, the background image layer appears only after i add another layer. how can i tell the layer view to update ?
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 6/16/2009(UTC) Posts: 134
Was thanked: 8 time(s) in 8 post(s)
|
Yes, it seems that after postback all items in the layers list are disappeared. We will fix it and update the sample on the forum. |
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 2/27/2010(UTC) Posts: 74
|
hi again just a quick one which of the files have been changed for the removal of the "name" attribute to work ? do i need to replace all the files for this to work or just some of them ? thanks
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/9/2008(UTC) Posts: 554
Was thanked: 1 time(s) in 1 post(s)
|
Hi, We recommend you to replace all files. |
|
|
|
|
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.