eDocEngine VCL Professional Help » Symbol Reference » Namespaces of Helper Classes » gtCstDocEng Namespace » TgtImageSettings Class » TgtImageSettings.AutoSize Property

Gnostice eDocEngine VCL Developer Guide
TgtImageSettings.AutoSize Property

Specifies whether images are rendered in their original size or made to fit within their display area.

Pascal
public property AutoSize: Boolean;
C++
public: __property Boolean AutoSize;
Description

If set to true, images are displayed in their original size. If the display area of an image is smaller than the image, then the image will overflow the display area. 

If set to false, images are fit within the display area as per Stretch and KeepAspectRatio settings.

procedure TForm1.Demo_IgtDocumentSettings_Frame;
var
  gtPDFEngine1: TgtPDFEngine;
begin
  gtPDFEngine1 := TgtPDFEngine.Create(Nil);

  with gtPDFEngine1 do
  begin
    Preferences.ShowSetupDialog := False;
    FileName := 'Output_Docs\sample_doc.pdf';

    Frame.IsLeft := True;
    Frame.IsTop := True;
    Frame.IsRight := True;
    Frame.IsBottom := True;
    Frame.IsBottom := True;
    Frame.InternalMargin := gtRect(1, 1, 1, 1);

    BeginDoc;

    TextBox(gtRect(1, 1, 5, 1.5), 'Hello, world', haLeft, vaCenter);
    Rectangle(0.9, 0.9, 5.1, 1.6, False);
    EndDoc;
  end;
end;