Click here to Skip to main content
15,867,835 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How can I previwe a Photoshop file in C #?

What I have tried:

i want show psd file in picturebox C# . previwe
Posted
Updated 1-Feb-18 13:22pm
v2

1 solution

.NET Images do not support PSD file directly, so there is no way to "persuade" a PictureBox to show a PSD file, without handling it's Paint event and readign teh file and drawing it's content yourself.
That's a lot of work, but these may help for starters:
Reading Adobe Photoshop images[^]
Yet Another PSD Parser[^]
They are both quite old though, and you will have to modify them to support the latest PSD file format(s) - they change and evolve over time, as new versions of Photoshop are released.
 
Share this answer
 
v2
Comments
GenJerDan 22-Jan-18 7:12am    
Since it looks like only a readonly preview is being asked for, how about using a PreviewHandler? https://www.codeproject.com/articles/18202/photoshop-preview-handler-for-windows-vista

Or am I missing something?
OriginalGriff 22-Jan-18 7:17am    
Hadn't seen that one - that's another way. Just as old though! :laugh:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900