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



Go to last post Go to first unread
#1 Posted : Friday, June 29, 2007 2:36:27 PM(UTC)

Rank: Member

Groups: Member
Joined: 6/29/2007(UTC)
Posts: 9

Using the Advanced PSD Add on is it possible to have a text layer change its position depending on the size of the layer beside it?

For example:

[First Name] [Last Name] [Position]

[First Name], [Last Name] and [Position] are all separate layers and depending on the overall size of the First Name, the [Last Name] layer will slide to the right accordingly as well as [Position] depending on the overall length of [First Name] and [Last Name] layers.

Thanks very much!

- Chris

Alex Kon  
#2 Posted : Monday, July 2, 2007 5:29:02 PM(UTC)
Alex Kon

Rank: Advanced Member

Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)

This task is not related to the Advanced PSD Add-on because the add-on just provides functionality for extracting data from PSD, not for rendering or changing it. Implementation of this feature is possible either with System.Drawing objects or with Aurigma.GraphicsMill.Drawing ones (it depends on which rendering engine you want to use - System.Drawing/GDI+ or GDI).

In order to implement this you should control the whole layout of the PSD template and co-ordinate sizes of its parts. Someway you should find groups of layers which can change their size and affect each other. And when size of one text layer is changed, you should use this information and (for example) Aurigma.GraphicsMill.Drawing.Font.MeasureText(...) method to correct position of all dependent layers.

Edited by user Tuesday, January 1, 2008 4:42:38 AM(UTC)  | Reason: Not specified

#3 Posted : Friday, July 6, 2007 12:51:45 PM(UTC)

Rank: Member

Groups: Member
Joined: 6/29/2007(UTC)
Posts: 9

Alex thanks again for the direction you pointed me in with this!

The customer support was awesome and much appreciated!
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.