fpvectorial: Fix compilation error of fpv3dviewer demo

git-svn-id: trunk@47904 -
This commit is contained in:
wp 2015-02-19 17:07:35 +00:00
parent dab5d2ef91
commit d445c65ad6
2 changed files with 10 additions and 10 deletions

View File

@ -7,12 +7,12 @@ object formVectorialConverter: TformVectorialConverter
Caption = 'FP Vectorial Converter'
ClientHeight = 456
ClientWidth = 240
LCLVersion = '0.9.31'
LCLVersion = '1.5'
object Label1: TLabel
Left = 8
Height = 18
Height = 15
Top = 128
Width = 158
Width = 133
Caption = 'Location of the Input file:'
ParentColor = False
end
@ -30,35 +30,35 @@ object formVectorialConverter: TformVectorialConverter
end
object editInput: TFileNameEdit
Left = 8
Height = 25
Height = 27
Top = 144
Width = 192
DialogOptions = []
FilterIndex = 0
HideDirectories = False
ButtonWidth = 23
NumGlyphs = 0
NumGlyphs = 1
MaxLength = 0
TabOrder = 0
end
object Label3: TLabel
Left = 8
Height = 18
Height = 15
Top = 168
Width = 169
Width = 143
Caption = 'Full path of the Output file:'
ParentColor = False
end
object editOutput: TFileNameEdit
Left = 8
Height = 25
Height = 27
Top = 184
Width = 192
DialogOptions = []
FilterIndex = 0
HideDirectories = False
ButtonWidth = 23
NumGlyphs = 0
NumGlyphs = 1
MaxLength = 0
TabOrder = 1
end

View File

@ -62,7 +62,7 @@ begin
Vec.ReadFromFile(editInput.FileName, vfPDF);
imagePreview.Canvas.Brush.Color := clWhite;
imagePreview.Canvas.FillRect(0, 0, imagePreview.Width, imagePreview.Height);
DrawFPVectorialToCanvas(Vec.GetPage(0), imagePreview.Canvas);
DrawFPVectorialToCanvas(Vec.GetPageAsVectorial(0), imagePreview.Canvas);
finally
Vec.Free;
end;