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

Notification

Icon
Error

4 Pages<1234>
Options
Go to last post Go to first unread
Dmitry.Obukhov  
#41 Posted : Friday, June 17, 2011 3:42:59 AM(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,

Probably, you experience this problem because of there are not necessary fonts in Font/ folder on your staging server. Please check it.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
thanks 1 user thanked Dmitry.Obukhov for this useful post.
xavyr on 6/19/2011(UTC)
xavyr  
#42 Posted : Sunday, June 19, 2011 9:23:41 PM(UTC)
xavyr

Rank: Member

Groups: Member
Joined: 3/22/2011(UTC)
Posts: 11

Thanks: 2 times
Hello,

Yeah, the fonts in Font folder are different for development and staging server.

Thank you.


Best Regards,
xavyr
alextkc  
#43 Posted : Wednesday, June 22, 2011 8:27:15 PM(UTC)
alextkc

Rank: Member

Groups: Member
Joined: 3/6/2011(UTC)
Posts: 13

Hi,

After installing the fonts into server, mostly work.
However there are some still not. And we have 2 scenario when it doesnt work:

1. We need to manually set bold or italic for them to work
Aharoni
Berlin Sans FB Demi
Brush Script MT
Harlow Solid Italic
Magneto
Monotype Corsiva
Palace Script MT
Vivaldi

2. Never work
Fixedsys
MS Serif
Small Fonts
System


Possible to advise?

Thx.
Dmitry.Obukhov  
#44 Posted : Friday, June 24, 2011 4:03:50 AM(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 Alex,
Quote:
1. We need to manually set bold or italic for them to work
Aharoni
Berlin Sans FB Demi
Brush Script MT

Unfortunately, there is no way to fix it. You can set bold/italic style for these fonts manually only, since they are do not support these font styles as optional.
Quote:
2. Never work
Fixedsys
MS Serif
Small Fonts
System

Graphics Mill Text Vobjects supports TTF fonts only. The listed above fonts are FON. Thus, they do not work.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
alextkc  
#45 Posted : Monday, August 8, 2011 8:03:26 PM(UTC)
alextkc

Rank: Member

Groups: Member
Joined: 3/6/2011(UTC)
Posts: 13

Hi,

Is there any function that allows us to create text in round shape?
For example, we need an editor for public user to create a company stamp online.
The stamp is in round shape, and they would like to type the company name and the text will follow the round shape.

Is this possible?

Thanks.

Alex
Dmitry.Obukhov  
#46 Posted : Monday, August 8, 2011 8:07:38 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 Alex,

Thanks for this question.

Unfortunately, it is not possible to place a text in some round shape. For vector objects provided by Graphics Mill, text can be typed in a line only.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
alextkc  
#47 Posted : Monday, August 8, 2011 9:46:53 PM(UTC)
alextkc

Rank: Member

Groups: Member
Joined: 3/6/2011(UTC)
Posts: 13

Hi,

Thanks for the prompt reply.
Is there any way to achieve this with other control or components?

Thx.

Alex
Dmitry.Obukhov  
#48 Posted : Tuesday, August 9, 2011 12:33:48 AM(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)
Alex,

There are two possible ways you can use:
  1. if text, you need to add, is the same for all customers, you will be able to add an image with this text.
  2. this way is similar, but you should do additional steps before. You can use this sample to make text in round shape, save it as an image, and then put the image to Gift Editor.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
laser1  
#49 Posted : Tuesday, June 26, 2012 5:24:04 PM(UTC)
laser1

Rank: Newbie

Groups: Member
Joined: 6/26/2012(UTC)
Posts: 1

Dmitry.Obukhov wrote:
Hello,
Quote:
Is there any way to export the image that the user have made in pdf with vectors so it can be edited in Illustrator later?

Unfortunately, it is impossible.

Hello!
One year has passed. Is now PDF-export of the image may be possible?
If isn't present, my question. The text entered by the user in an editor, saves with low permission, unprintable for big printsize (s.attach). I save so:

using (Bitmap bp = photoLabel.RenderRegion(photoLabel.CurrentRegion.Name, 600))
{
bp.Save(MapPath("~/Saves/region.png"));
}

What do I wrong?

Edited by user Tuesday, June 26, 2012 5:48:01 PM(UTC)  | Reason: Not specified

laser1 attached the following image(s):
4.png
Dmitry.Obukhov  
#50 Posted : Tuesday, June 26, 2012 11:39:57 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,

Quote:
Is now PDF-export of the image may be possible?

Unfortunately no.

Quote:
The text entered by the user in an editor, saves with low permission, unprintable for big printsize.

Actually it is not possible to make text more quality because Graphics Mill does not support font smoothing.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Manish Gupta  
#51 Posted : Sunday, November 18, 2012 11:37:20 PM(UTC)
Manish Gupta

Rank: Newbie

Groups: Member
Joined: 8/9/2012(UTC)
Posts: 7

Thanks: 2 times
Hello,

During save the canvas, i want to get coordinates, height, width and z-index of all the images which we added on the layer(canvas).

Is this Possible? If yes how can i do this??
Manish Gupta attached the following image(s):
gifteditor.png
Dmitry.Obukhov  
#52 Posted : Wednesday, November 21, 2012 2:13:42 AM(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 Manish,

Yes, it is possible. To get coordinates, you should use Location property; for height and width - use Height and Width properties; for z-index - Index property.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
thanks 1 user thanked Dmitry.Obukhov for this useful post.
Manish Gupta on 11/24/2012(UTC)
Manish Gupta  
#53 Posted : Saturday, November 24, 2012 9:49:16 AM(UTC)
Manish Gupta

Rank: Newbie

Groups: Member
Joined: 8/9/2012(UTC)
Posts: 7

Thanks: 2 times

Hello,

Thanks that was very helpful. I have founded all required things.

thanks
Manish Gupta

Dmitry.Obukhov wrote:
Hello Manish,

Yes, it is possible. To get coordinates, you should use Location property; for height and width - use Height and Width properties; for z-index - Index property.

Manish Gupta  
#54 Posted : Tuesday, January 8, 2013 11:23:16 PM(UTC)
Manish Gupta

Rank: Newbie

Groups: Member
Joined: 8/9/2012(UTC)
Posts: 7

Thanks: 2 times
Hello,
My requirement is to save the coordinates, height, width, z-index and angle of all the images which we added in the canvas. And then using that saved information regenerate the image back on the canvas for editing purpose (like change the height, width etc of any image and save them).

I am successfully getting and saving the all required information like (coordinates, height, width, z-index and angle) in my database. But I am facing problem in regenerating image back on the canvas for editing purpose.

I am using following code for this.

Code:
// using this code to get the required information of all images and saving them in the database on save button click
    protected void renderBtn_Click(object sender, EventArgs e)
    {
        var imageList = photoLabel.GetVObjects();
        int counter = 0;
        foreach (var image in imageList)
        {
            counter++;
            int width = Convert.ToInt32(image.Bounds.Width.ToString().Split('.')[0].ToString());
            int height = Convert.ToInt32(image.Bounds.Height.ToString().Split('.')[0].ToString());
            int y_coordinate = Convert.ToInt32(image.Bounds.Top.ToString().Split('.')[0].ToString());
            int x_coordinate = Convert.ToInt32(image.Bounds.Left.ToString().Split('.')[0].ToString());
            double angle = image.Transform.Angle;
            int zindex = counter;
        }
    }


Code:
// calling this function on page load
    protected void fillCavnaswithSavedImage()
    {
        using (SqlConnection con = new SqlConnection(DB.GetDBConn()))
        {
            //getting the saved record of all the four images from the database
            string queryprod = "select * from ProductAttributeDesign where productid=" + ProductID + " order by zindex";
            SqlDataAdapter sqldaprod = new SqlDataAdapter(queryprod, con);
            DataSet dsprod = new DataSet();
            sqldaprod.Fill(dsprod, "prod");
            foreach (DataRow dr in dsprod.Tables[0].Rows)
            {
                float angle = 0;
                float.TryParse(Convert.ToString(dr["attrAngle"]), out angle);
                string id = imageName.Trim().GetHashCode().ToString();
                addVObject(id, Convert.ToInt32(dr["productheight"]), Convert.ToInt32(dr["productwidth"]), Convert.ToInt32(dr["producttop"]), Convert.ToInt32(dr["productleft"]), angle);
            }
        }
    }


Code:
protected void addVObject(string id, int height, int width, int top, int left, float angle)
    {
        ImageVObjectData objVObject = CreateImageVObject(id);
        ImageVObject vo = new ImageVObject();
        objVObject.ApplyState(vo);
        vo.BeginUpdate();
        //proportional resize only
        vo.SupportedActions &= ~VObjectAction.Rotate;
        //  vo.Angle = angle;
        Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math.RotatedRectangleF r = vo.Rectangle;
        r.Angle = angle;
        r.Height = height;
        r.Width = width;
        r.Location = new Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math.PointF(left, top);

        vo.Rectangle = r;
        vo.EndUpdate();
        photoLabel.AddVObject(vo, "Main");
    }


Code:
[System.Web.Services.WebMethod]
    public static ImageVObjectData CreateImageVObject(string imageId)
    {
        string productID = HttpContext.Current.Session["DesignProductid"].ToString();
        string fileName = Array.Find(Directory.GetFiles(_ProductFolder, productID + "*.jpg"),
            delegate(string s) { return s.GetHashCode().ToString() == imageId; });
        if (fileName == null)
            fileName = Array.Find(Directory.GetFiles(_ProductFolder, productID + "*.png"),
            delegate(string s) { return s.GetHashCode().ToString() == imageId; });
        if (fileName == null)
            fileName = Array.Find(Directory.GetFiles(_AttributeFolder, "*.png"),
            delegate(string s) { return s.GetHashCode().ToString() == imageId; });

        ImageVObject vo = new ImageVObject(new FileInfo(fileName));

        //proportional resize to "defaultImageSize"x"defaultImageSize"
        Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math.RotatedRectangleF r = vo.Rectangle;
        float dx = defaultImageSize / r.Width;
        float dy = defaultImageSize / r.Height;
        float d = dx < dy ? dx : dy;
        r.Width = d * r.Width;
        r.Height = d * r.Height;

        r.Location = new Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math.PointF(2, 2);
        vo.Rectangle = r;

        vo.FillColor = System.Drawing.Color.Transparent;

        //proportional resize only
        vo.SupportedActions &= ~VObjectAction.ArbitraryResize;

        // Create thumbnail to show in the layers list
        vo.Tag = GenerateThumbnail(fileName);

        string[] name = fileName.Split('\\');
        string imageName = name[name.Length - 1].ToString();

        imagdata im = new imagdata();
        im.name_new = vo.Tag.ToString().Split('=')[1];
        im.name_Old = imageName;
        if (HttpContext.Current.Session["imagedata"] == null)
        {
            List<imagdata> imgdata = new List<imagdata>();
            imgdata.Add(im);
            HttpContext.Current.Session["imagedata"] = imgdata;
        }
        else
        {
            List<imagdata> imgdata = (List<imagdata>)HttpContext.Current.Session["imagedata"];
            imagdata ac = (from c in imgdata where c.name_Old.ToLower() == imageName.ToLower() select c).FirstOrDefault();
            if (ac != null)
            {
                ac.name_new = vo.Tag.ToString().Split('=')[1];
            }
            else
            {
                imgdata.Add(im);
            }
            HttpContext.Current.Session["imagedata"] = imgdata;
        }

        return new ImageVObjectData(vo);
    }

Please help me in this.
thanks
Manish gupta

Edited by user Tuesday, January 8, 2013 11:36:26 PM(UTC)  | Reason: One code was missed by me.

Manish Gupta attached the following image(s):
1.png
3.png
vitaly  
#55 Posted : Monday, January 14, 2013 4:06:54 AM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Try to apply rotation transform before you add your VObject to the control:

protected void addVObject(string id, int height, int width, int top, int left, float angle)
{
ImageVObjectData objVObject = CreateImageVObject(id);
ImageVObject vo = new ImageVObject();
objVObject.ApplyState(vo);
vo.BeginUpdate();
//proportional resize only
vo.SupportedActions &= ~VObjectAction.Rotate;
// vo.Angle = angle;
Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math.RotatedRectangleF r = vo.Rectangle;
r.Angle = angle;
r.Height = height;
r.Width = width;
r.Location = new Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math.PointF(left, top);
vo.Rectangle = r;

Aurigma.GraphicsMill.AjaxControls.VectorObjects.Transform tf
= new Aurigma.GraphicsMill.AjaxControls.VectorObjects.Transform();

tf.Angle = angle;
vo.Transform = tf;



vo.EndUpdate();
photoLabel.AddVObject(vo, "Main");
}
Best regards,
Vitaly Kustov
Aurigma Technical Support
Manish Gupta  
#56 Posted : Wednesday, January 16, 2013 9:22:49 AM(UTC)
Manish Gupta

Rank: Newbie

Groups: Member
Joined: 8/9/2012(UTC)
Posts: 7

Thanks: 2 times
Hello,

thanks for reply. I have tried the solution which you provided me but unfortunately it did not work.

I have made a sample application of this, please find the attached project. Please help me to regenerate the images back on the canvas so that we can do editing.

thanks
manish gupta

vitaly wrote:
Try to apply rotation transform before you add your VObject to the control:

protected void addVObject(string id, int height, int width, int top, int left, float angle)
{
ImageVObjectData objVObject = CreateImageVObject(id);
ImageVObject vo = new ImageVObject();
objVObject.ApplyState(vo);
vo.BeginUpdate();
//proportional resize only
vo.SupportedActions &= ~VObjectAction.Rotate;
// vo.Angle = angle;
Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math.RotatedRectangleF r = vo.Rectangle;
r.Angle = angle;
r.Height = height;
r.Width = width;
r.Location = new Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math.PointF(left, top);
vo.Rectangle = r;

Aurigma.GraphicsMill.AjaxControls.VectorObjects.Transform tf
= new Aurigma.GraphicsMill.AjaxControls.VectorObjects.Transform();

tf.Angle = angle;
vo.Transform = tf;



vo.EndUpdate();
photoLabel.AddVObject(vo, "Main");
}

Edited by user Wednesday, January 16, 2013 9:37:07 AM(UTC)  | Reason: Not specified

File Attachment(s):
Sample Application.zip (9,532kb) downloaded 17 time(s).
vitaly  
#57 Posted : Thursday, January 17, 2013 1:44:19 AM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Hello Manish,

I looked project more deeply and realized that it is possible to make this simply. Every VObject has Data property which allows to get or set object state as a JSON string. Instead of copying each property of VObject you can just save the Data property.

I noticed you also have a support ticket for the same problem. I have attached there the modified project which utilizes this approach.

Best regards,
Vitaly Kustov

Best regards,
Vitaly Kustov
Aurigma Technical Support
thanks 1 user thanked vitaly for this useful post.
Manish Gupta on 1/21/2013(UTC)
Manish Gupta  
#58 Posted : Monday, January 21, 2013 12:29:21 AM(UTC)
Manish Gupta

Rank: Newbie

Groups: Member
Joined: 8/9/2012(UTC)
Posts: 7

Thanks: 2 times

Hello Vitaly,

I got the modified project and it is working fine now. Thanks for the help.


Regards,
Manish Gupta

vitaly wrote:
Hello Manish,

I looked project more deeply and realized that it is possible to make this simply. Every VObject has Data property which allows to get or set object state as a JSON string. Instead of copying each property of VObject you can just save the Data property.

I noticed you also have a support ticket for the same problem. I have attached there the modified project which utilizes this approach.

Best regards,
Vitaly Kustov


Manish Gupta  
#59 Posted : Monday, January 28, 2013 5:14:35 AM(UTC)
Manish Gupta

Rank: Newbie

Groups: Member
Joined: 8/9/2012(UTC)
Posts: 7

Thanks: 2 times
Hello Vitaly,

i have noticed one thing in the modified project that after we saved the data property of every VObject and then if we tried to open the same page again after one day for editing then it is not loading the images. I have attached the screen shot of what i got after one day.


I think this might be the issue with the cache folders in which randomly generated images are saving and after some time these images are deleted from the cache folders. And the data property of VOjects which we are saving contains that image source path that does not exits after on day.

Please help me.

Regards
Manish Gupta
Manish Gupta attached the following image(s):
graphicmills.png
vitaly  
#60 Posted : Tuesday, January 29, 2013 12:29:48 AM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Hello,

I talked to our developers and according to them you stored image data in the session, that have TimeOut property (http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.timeout.aspx).
You can make this property value more. Also you can store data in database or other storages.

Please learn more here: http://msdn.microsoft.com/en-us/library/ms178587(v=vs.90).aspx

Best regards,
Vitaly Kustov,
Aurigma Technical Support

Edited by user Tuesday, January 29, 2013 12:30:32 AM(UTC)  | Reason: Not specified

Best regards,
Vitaly Kustov
Aurigma Technical Support
Users browsing this topic
Guest
4 Pages<1234>
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.