Changeset 50 for trunk/Forms


Ignore:
Timestamp:
Dec 3, 2021, 7:06:14 PM (3 years ago)
Author:
chronos
Message:
  • Fixed: Contact photo was not visible under Linux.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormContact.pas

    r49 r50  
    307307            try
    308308              JpegImage.LoadFromStream(Stream);
    309               ImagePhoto.Picture.Bitmap.Clear;
    310               ImagePhoto.Picture.Bitmap.SetSize(JpegImage.Width, JpegImage.Height);
    311               ImagePhoto.Picture.Bitmap.Canvas.Draw(0, 0, JpegImage);
     309              with ImagePhoto.Picture.Bitmap do begin
     310                PixelFormat := pf24bit;
     311                SetSize(JpegImage.Width, JpegImage.Height);
     312                Canvas.Draw(0, 0, JpegImage);
     313              end;
    312314              ProfilePhotoActive := True;
    313315            except
Note: See TracChangeset for help on using the changeset viewer.