|
ストロークの色を設定します。
Delphi 構文:
procedure SetRGBStrokeColor ( Value: TColor );
C++ 構文:
void __fastcall SetRGBStrokeColor ( Graphics::TColor Value );
説明:
SetRGBStrokeColor を呼び出してストロークの色の値を設定します。
コード例
program Rectangle;
{$APPTYPE CONSOLE}
uses
SysUtils, Graphics, Classes, HPDFDoc;
var
HPDF: THotPDF;
begin
HPDF := THotPDF.Create(nil);
try
HPDF.AutoLaunch := true; // PDF file will be shown automatically
HPDF.File名前 := '\Rectangle.pdf'; // Set PDF filename
HPDF.BeginDoc; // Create PDF file
HPDF.CurrentPage.SetRGBStrokeColor ( clRed ); // Set stroke color
HPDF.CurrentPage.SetRGBFillColor ( clYellow ); // Set fill color
HPDF.CurrentPage.Rectangle( 10, 10, 100, 100 ); // Draw rectangle
HPDF.CurrentPage.FillAndStroke; // and fill and stroke
HPDF.EndDoc; // Close PDF file
finally
HPDF.Free;
end;
end.
See also: SetGrayColor, SetGrayFillColor, SetGrayStrokeColor, SetRGBColor, SetRGBFillColor.
|