This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
Mr Marsh  
#1 Posted : Tuesday, July 3, 2007 9:17:12 PM(UTC)
Mr Marsh

Rank: Member

Groups: Guest
Joined: 5/2/2007(UTC)
Posts: 5

I have a scenario where I need two layers in the PSD, one to hold a picture with portrait proportions (called Month Image Portrait) and one to hold landscape pictures (called Month Image Landscape)

Does anyone know if it's possible to hide or show layers based on criteria.

Here's some code:

Code:
Aurigma.GraphicsMill.Bitmap photo = new Aurigma.GraphicsMill.Bitmap(stream);
        if (photo.Width < photo.Height)
        {
            updatedLayers.Add("Month Image Portrait", photo);
        }
        else
        {
            updatedLayers.Add("Month Image Landscape", photo);
        }


Ideally I'd like to hide whichever layer isn't being used - any ideas?

Thanks in advance

Peter

Edited by user Tuesday, December 18, 2007 2:19:07 AM(UTC)  | Reason: Not specified

Alex Kon  
#2 Posted : Wednesday, July 4, 2007 1:06:21 PM(UTC)
Alex Kon

Rank: Advanced Member

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

Was thanked: 5 time(s) in 5 post(s)
Hello Peter,

I don't understand you quite clear. Advanced PSD Add-on is intended for extracting information from PSD. It has no facilities to render or change PSD file.

Are you talking about rendering of some images within some PSD template? In that case you should extract all layers from PSD (e.g. both "Portrait" and "Landscape") and render necessary ones depending on your requirements (e.g. depending on image width/height ratio).
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.