DWG conversion to PNG


#41

Thanks sir,
Then, this code used psd new layer didn’t draw…

png image draw the psd layer viwe issue for image is strech.


#42

How to one psd layer to add on another psd layer?

Then one psd layer size is 1920 * 1080
another psd layer size is 2400 * 3000

This two psd layer save an single psd image it’s not saved.


#43

@veerakarthik,

I have observed your scenario and request you to please share the working example along with sample code reproducing the issue on your end. Moreover, can you please share the elaboration for following comments too.


#44

Hi,
How to add alpha chanels within psd layer


#45

@veerakarthik,

I have observed your requirements and regret to share that at present the requested support is not available in API. An issue with ID PSDNET-226 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the feature will be available.


#46

ok sir…
Any other updates in alpha channel create on particular layer in PSD image


#47

@veerakarthik,

As I have shared earlier with you that this support is not available in API. The tentative ETA for this support is by end of Q1 of 2020. In mean while, I suggest you to please consider using following code if that helps as a workaround. In the following case we save transparency of transparent PNG file.

            string layer1File = "Layer1.psd";
            string layer2File = "Layer2.png";
            string layer3File = "Layer3.png";

            Layer Layer2 = null;
            Layer Layer3 = null;
            using (PsdImage image = (PsdImage)Image.Load(layer1File))
            {
                using (var stream = new FileStream(layer2File, FileMode.Open))
                {
                    Layer2 = new Layer(stream);

                    Layer2.Resize(1200, 1200);
                    var width = Layer2.Width;
                    var height = Layer2.Height;

                    Layer2.Left = 675;
                    Layer2.Top = 0;

                    Layer2.Right = Layer2.Left + width;
                    Layer2.Bottom = Layer2.Top + height;

                    image.AddLayer(Layer2);
                }

                using (var stream = new FileStream(layer3File, FileMode.Open))
                {
                    Layer3 = new Layer(stream);
                    Layer3.Resize(550, 550);

                    var width = Layer3.Width;
                    var height = Layer3.Height;

                    Layer3.Left = 1200;
                    Layer3.Top = 300;

                    Layer3.Right = Layer3.Left + width;
                    Layer3.Bottom = Layer3.Top + height;

                    image.AddLayer(Layer3);
                }

                string outFileName = "finaloutput.psd";
                image.Save(outFileName, new PsdOptions());
            }