Jump to content

dmitrok2006

Members
  • Content Count

    15
  • Joined

  • Last visited

Community Reputation

2 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. dmitrok2006

    Resize PNG in Delphi 11

    In any case, thanks for the help. )))
  2. dmitrok2006

    Resize PNG in Delphi 11

    Strange... of course... But when I add the saved picture to photoshop, the picture with a white background...
  3. dmitrok2006

    Resize PNG in Delphi 11

    Programmerdelphi2k... Wow, such a big code)))) I need a few hours to understand. So I'll write the answer tomorrow, ok? Thank you, you are a good person )
  4. dmitrok2006

    Resize PNG in Delphi 11

    There I forgot to write in Var ....
  5. dmitrok2006

    Resize PNG in Delphi 11

    Can I email the project for you to fix? Please)
  6. dmitrok2006

    Resize PNG in Delphi 11

  7. dmitrok2006

    Resize PNG in Delphi 11

    Programmerdelphi2k... One more question.... I made this code, but the transparency seems to have disappeared in the saved PNG. Why? var Form1: TForm1; PNGSource: TPicture; PNGTarget: TPicture; PNGresult: TPngImage; implementation {$R *.dfm} uses Unit2; procedure TForm1.a0Click(Sender: TObject); begin PNGSource:= TPicture.Create; PNGTarget:= TPicture.Create; PNGresult:= TPngImage.Create; PNGSource:=form2.Aa.Picture; PNGSource.Graphic.Transparent := True; PNGTarget.Bitmap.Width := Trunc(PNGSource.Width / 4.0); PNGTarget.Bitmap.Height := Trunc(PNGSource.Height / 4.0); PNGTarget.Bitmap.Canvas.StretchDraw(PNGTarget.Bitmap.Canvas.ClipRect, PNGSource.Graphic); PNGresult.Assign(PNGTarget.Bitmap); PNGresult.SaveToFile('c:\1DU\As.png');
  8. dmitrok2006

    Resize PNG in Delphi 11

    It's a bit hard to understand, but I'll try. Thank you )))))
  9. dmitrok2006

    Resize PNG in Delphi 11

    That is, in the last code at the development stage, the image will be loaded and the file on disk can be deleted?
  10. dmitrok2006

    Resize PNG in Delphi 11

    Thank you very much, I'll look into it ))))
  11. dmitrok2006

    Resize PNG in Delphi 11

    On Form1 I don't need to put Image1 ?
  12. dmitrok2006

    Resize PNG in Delphi 11

    I'm fine with any boot method that doesn't access the disk while the exe file is running... For example, in my project, I manually loaded PNG into Image1....
  13. dmitrok2006

    Resize PNG in Delphi 11

    programmerdelphi2k, I want to ask .... Maybe I don't understand something... But the code uses LoadFromFile, and I need to load the image manually, without using LoadFromFile.
  14. dmitrok2006

    Resize PNG in Delphi 11

    programmerdelphi2k, thank you very much. I will try. ))))
  15. dmitrok2006

    Resize PNG in Delphi 11

    Hello! Need help on this topic. In general, I will describe in more detail. I throw Image1 on the form. Manually (just manually) I load a Png image there, say 600x700, with transparency. Using the code, I need to resize this image loaded in Image1 and then save it to disk in new sizes. The Stretch property doesn't help, because on the contrary, Image1 is adjusted to fit the image and as a result, when saved, Png of the same sizes. I tried Image1.Picture.graphic.setsize, but then a piece of the picture is saved Help. pliz......
×