Loading a skin from memory stream

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #47620
    Witcher
    Participant

      Hello!

      I found similar question in Russian part of forum. There is is solution:

      Code:
      const
      SkinName = 'Skin loaded from stream';
      begin
      sSkinManager1.IsDefault := True;
      sSkinManager1.InternalSkins.Add;
      sSkinManager1.InternalSkins[sSkinManager1.InternalSkins.Count – 1].Name := SkinName;
      sSkinManager1.InternalSkins[sSkinManager1.InternalSkins.Count – 1].PackedData.LoadFromfile('c:SkinsAir.asz');
      sSkinManager1.SkinName := SkinName;
      sSkinManager1.Active := True;

      You can try to use LoadFromStream instead LoadFromfile. I hope, it will be useful for you.

      #47626
      Support
      Keymaster

        Hello! Also, maybe this demo can help you.

        #47633
        Romans11
        Participant

          Big thanks! This really helped me.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.