Rank: Advanced Member
Groups: Member
Joined: 2/27/2010(UTC) Posts: 74
|
hi loading an image works perfectly, the problem is when i load more then one: they all show on the work area but only the first one is saved when i save the work area when i use images from the labels folder i can put as many as i like with no problems any ideas?
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello Ido,
Unfortunately I do not understand a bit what you mean. Could you explain it more detailed please? |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 2/27/2010(UTC) Posts: 74
|
sorry, I'll try to be more clear. Andrey helped me in this post: http://forums.aurigma.co...id-and-upload-image.aspxthe code bit in the middle of the thread. so i can upload an image to the work area. but when i try to upload more then 1 image, i see them perfectly on the work area, but only the first one is saved when i save the work area to PNG.
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello Ido,
Thanks for your explanation. I understand now. Could you please provide me with a method, which you use to save images to PNG please? A small sample will be better. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 2/27/2010(UTC) Posts: 74
|
is this what you need? Code:
using (Bitmap bp = photoLabel.RenderCanvas(300))
{
try
{
string dfile = "~/user_data/" + UID + "/temp/d" + fileName + ".png";
bp.Save(MapPath(dfile));
files = dfile;
}
catch (System.Exception ex)
{
Response.Write("<script>alert('" + ex.Message + "');</script>");
}
}
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello Ido, I created simple application based on the code you provided me. It allows adding many files on canvasviewer, and saving them all to one PNG file. All images added on canvas, were saved okay. I attached this application for your reference. Please try it. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
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.