Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
idekkers  
#1 Posted : Sunday, October 24, 2010 9:33:21 PM(UTC)
idekkers

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?
Dmitry.Obukhov  
#2 Posted : Tuesday, October 26, 2010 6:19:47 PM(UTC)
Dmitry.Obukhov

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.
idekkers  
#3 Posted : Wednesday, October 27, 2010 1:50:58 AM(UTC)
idekkers

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.aspx
the 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.
Dmitry.Obukhov  
#4 Posted : Wednesday, October 27, 2010 2:30:44 PM(UTC)
Dmitry.Obukhov

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.
idekkers  
#5 Posted : Wednesday, October 27, 2010 5:54:54 PM(UTC)
idekkers

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>");
                }
            }
Dmitry.Obukhov  
#6 Posted : Wednesday, October 27, 2010 9:45:03 PM(UTC)
Dmitry.Obukhov

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.
File Attachment(s):
WebSite14.zip (2,426kb) downloaded 2 time(s).
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
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.