There is a PNG drawing: a black contour on a transparent background. Pour it on PictureBox like this:

 Graphics gr = pbx_StylePic.CreateGraphics(); Image im = Image.FromFile($"styles/shirt/{fileName}.png"); gr.DrawImage(im, new Point(0, 0)); 

It becomes exactly as it should. However, if I open the file in Photoshop and DO NOT CHANGE the size, I’ll just draw a little bit of this outline and re-save the whole picture and as a result the outline will move out of its place. Why is that? Who faced the same, prompt the decision. Thank!

  • If you simply resave, the size in kb increased every 8 to 10 and the resolution remained the same. The scale goes away - Sergey
  • one
    Isn't the DPI in the PNG accidentally stored? Maybe it's in it. - Kromster
  • All the same, no. changing the DPI changes the size in pixels. And I remain unchanged 400x538 - Sergey
  • "changing the DPI changes the size in pixels" where did you get this information? - Kromster
  • alt + ctrl + I in photoshop, changed dpi -save - the size has changed. - Sergey

0