THPDFPage.SetRGBStrokeColor

THPDFPage

 

맨 위  이전  다음

Sets stroke color.

 

Delphi 구문:

procedure SetRGBStrokeColor ( Value: TColor );

 

C++ 구문:

void __fastcall SetRGBStrokeColor ( Graphics::TColor Value );

 

Description:

Stroke color value를 설정하려면 SetRGBStrokeColor를 호출하십시오

 

Code Example

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.FileName := '\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.

 

참조: SetGrayColor, SetGrayFillColor, SetGrayStrokeColor, SetRGBColor, SetRGBFillColor.