Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update text Layer #5

Open
ValentinM92 opened this issue Apr 26, 2017 · 6 comments
Open

Update text Layer #5

ValentinM92 opened this issue Apr 26, 2017 · 6 comments

Comments

@ValentinM92
Copy link

ValentinM92 commented Apr 26, 2017

Hello,

To start, thank you very much for this library, it's perfect !

Next, I'm going to explain my situation :
I want to create a C# personnal application to read a psd file, get a specific layer, and update it. After the update, the application save the file as png file (with an other name if is it possible). The layer is always a text layer.

With your code, I got the good layer, but I don't find how Can I modify his text. There isn't method or attribut representing the text in the layer.

My code :

PsdFile psd = new PsdFile();
psd.Load(@"C:\Users\sigt_vm\Documents\03_IF\Visuels\PSD\PSD_Liga.psd");

Layer lScore = psd.Layers.FirstOrDefault(l => l.Name.Contains("Score"));

I attached my psd file, opened with Photoshop.

Can you help me ? :)

Thank you !
new issue bizzehdeesystem drawing psd - google chrome

@ValentinM92
Copy link
Author

Up ? :/

@ValentinM92
Copy link
Author

UP :) ?

@tgeorge91
Copy link

@ValentinM92 did you ever figure out how to do this?

@ValentinM92
Copy link
Author

ValentinM92 commented Feb 13, 2019 via email

@qq245562635
Copy link

Hello,

To start, thank you very much for this library, it's perfect !

Next, I'm going to explain my situation :
I want to create a C# personnal application to read a psd file, get a specific layer, and update it. After the update, the application save the file as png file (with an other name if is it possible). The layer is always a text layer.

With your code, I got the good layer, but I don't find how Can I modify his text. There isn't method or attribut representing the text in the layer.

My code :

PsdFile psd = new PsdFile();
psd.Load(@"C:\Users\sigt_vm\Documents\03_IF\Visuels\PSD\PSD_Liga.psd");

Layer lScore = psd.Layers.FirstOrDefault(l => l.Name.Contains("Score"));

I attached my psd file, opened with Photoshop.

Can you help me ? :)

Thank you !
new issue bizzehdeesystem drawing psd - google chrome

try try

static bool CheckIsText(System.Drawing.PSD.Layer layer)
{
foreach (var AdjustmentInfo in layer.AdjustmentInfo)
{
if (AdjustmentInfo.Key == "Tysh")
{
return true;
}
}
return false;
}

@qq245562635
Copy link

我想知道怎么才能得到一个组下面有多少个图层,头疼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants