#2 Delphi » Tif image uploading in delphi » 2015-12-08 07:06:41

basil_ke
Replies: 6

Am using following code to upload JPEG images in delphi.
But am not able to upload tif image. Can u pls give solution to upload tif images

procedure TfrmBarjeelImageScan.btnshowClick(Sender: TObject);
Var  JpegImage : TJpegImage;

begin
  if Trim(edtFileName.Text)= '' then
  begin
   ShowMessage('JPEG Image File not Selected');
   Exit;
  end
  else
  begin
   Image1.Picture.LoadFromFile(Trim(edtFileName.Text));
   JpegImage := TJpegImage.Create;
   try
    JpegImage.Assign(Image1.Picture.Graphic);
    Image1.Picture.Bitmap.Assign(JpegImage);
   finally
   end;
    FreeAndNil(JpegImage);
 end;
End;

Board footer

Powered by FluxBB