Reference Codebot.Graphics.Types.pas
Part of the Codebot package
The Codebot.Graphics.Types unit declares the types and interfaces used for 2D graphics, without depending on the LCL.
It defines integer and floating point points and rectangles, along with several kinds of colors. TColor uses the same values as the LCL, TColorB stores each channel as a byte, TColorF stores each channel as a floating point value, and THSL describes a color by its hue, saturation, and lightness. The unit also includes the named web colors and routines that convert, blend, fade, darken, and lighten colors.
The drawing interfaces are declared here as well:
- ISurface is what everything is drawn on.
- IPen strokes paths, and IBrush fills them, with solid, bitmap, and gradient brushes available.
- IFont describes how text is drawn, and IPath holds the shapes being drawn.
- IMatrix is a 2D transform used by surfaces and brushes.
- IBitmap is an image that can be drawn on and saved, and ISplash is a floating window shaped by a bitmap.
These interfaces are implemented by the Codebot.Graphics unit in the codebot_controls package.
Items 591 items
| Name | Kind | Line |
|---|---|---|
| AlignDir | constant | 79 |
| Blend | function | 814 |
| clAliceBlue | constant | 515 |
| Clamp | function | 833 |
| clAntiqueWhite | constant | 516 |
| clAqua | constant | 51 |
| clAquamarine | constant | 517 |
| clAzure | constant | 518 |
| clBeige | constant | 519 |
| clBisque | constant | 520 |
| clBlack | constant | 37 |
| clBlanchedAlmond | constant | 521 |
| clBlue | constant | 49 |
| clBlueViolet | constant | 522 |
| clBrown | constant | 523 |
| clBurlywood | constant | 524 |
| clCadetBlue | constant | 525 |
| clChartreuse | constant | 526 |
| clChocolate | constant | 527 |
| clCoral | constant | 528 |
| clCornFlowerBlue | constant | 529 |
| clCornSilk | constant | 530 |
| clCream | constant | 56 |
| clCrimson | constant | 531 |
| clCyan | constant | 532 |
| clDarkBlue | constant | 533 |
| clDarkCyan | constant | 534 |
| clDarkGoldenrod | constant | 535 |
| clDarkGray | constant | 536 |
| clDarkGreen | constant | 537 |
| clDarkKhaki | constant | 538 |
| clDarkMagenta | constant | 539 |
| clDarkOliveGreen | constant | 540 |
| clDarkOrange | constant | 541 |
| clDarkOrchid | constant | 542 |
| clDarkRed | constant | 543 |
| clDarkSalmon | constant | 544 |
| clDarkSeaGreen | constant | 545 |
| clDarkSlateBlue | constant | 546 |
| clDarkSlateGray | constant | 547 |
| clDarkTurquoise | constant | 548 |
| clDarkViolet | constant | 549 |
| clDeepPink | constant | 550 |
| clDeepSkyBlue | constant | 551 |
| clDefault | constant | 36 |
| clDimGray | constant | 552 |
| clDkGray | constant | 53 |
| clDodgerBlue | constant | 553 |
| clFireBrick | constant | 554 |
| clFloralWhite | constant | 555 |
| clForestGreen | constant | 556 |
| clFuchsia | constant | 50 |
| clGainsboro | constant | 557 |
| clGhostWhite | constant | 558 |
| clGold | constant | 559 |
| clGoldenrod | constant | 560 |
| clGray | constant | 44 |
| clGreen | constant | 39 |
| clGreenYellow | constant | 561 |
| clHoneydew | constant | 562 |
| clHotPink | constant | 563 |
| clIndianRed | constant | 564 |
| clIndigo | constant | 565 |
| clIvory | constant | 566 |
| clKhaki | constant | 567 |
| clLavender | constant | 568 |
| clLavenderBlush | constant | 569 |
| clLawnGreen | constant | 570 |
| clLemonChiffon | constant | 571 |
| clLightBlue | constant | 572 |
| clLightCoral | constant | 573 |
| clLightCyan | constant | 574 |
| clLightGoldenrodYellow | constant | 575 |
| clLightGray | constant | 577 |
| clLightGreen | constant | 576 |
| clLightPink | constant | 578 |
| clLightSalmon | constant | 579 |
| clLightSeaGreen | constant | 580 |
| clLightSkyBlue | constant | 581 |
| clLightSlateGray | constant | 582 |
| clLightSteelBlue | constant | 583 |
| clLightYellow | constant | 584 |
| clLime | constant | 47 |
| clLimeGreen | constant | 585 |
| clLinen | constant | 586 |
| clLtGray | constant | 52 |
| clMagenta | constant | 587 |
| clMaroon | constant | 38 |
| clMedGray | constant | 57 |
| clMediumAquamarine | constant | 588 |
| clMediumBlue | constant | 589 |
| clMediumOrchid | constant | 590 |
| clMediumPurple | constant | 591 |
| clMediumSeaGreen | constant | 592 |
| clMediumSlateBlue | constant | 593 |
| clMediumSpringGreen | constant | 594 |
| clMediumTurquoise | constant | 595 |
| clMediumVioletRed | constant | 596 |
| clMidnightBlue | constant | 597 |
| clMintCream | constant | 598 |
| clMistyRose | constant | 599 |
| clMoccasin | constant | 600 |
| clMoneyGreen | constant | 55 |
| clNavajoWhite | constant | 601 |
| clNavy | constant | 41 |
| clNone | constant | 35 |
| clOldLace | constant | 602 |
| clOlive | constant | 40 |
| clOliveDrab | constant | 603 |
| clOrange | constant | 604 |
| clOrangeRed | constant | 605 |
| clOrchid | constant | 606 |
| clPaleGoldenrod | constant | 607 |
| clPaleGreen | constant | 608 |
| clPaleTurquoise | constant | 609 |
| clPaleVioletRed | constant | 610 |
| clPapayaWhip | constant | 611 |
| clPeachPuff | constant | 612 |
| clPeru | constant | 613 |
| clPink | constant | 614 |
| clPlum | constant | 615 |
| clPowderBlue | constant | 616 |
| clPurple | constant | 42 |
| clRed | constant | 46 |
| clRosyBrown | constant | 617 |
| clRoyalBlue | constant | 618 |
| clSaddleBrown | constant | 619 |
| clSalmon | constant | 620 |
| clSandyBrown | constant | 621 |
| clSeaGreen | constant | 622 |
| clSeaShell | constant | 623 |
| clSienna | constant | 624 |
| clSilver | constant | 45 |
| clSkyBlue | constant | 625 |
| clSlateBlue | constant | 626 |
| clSlateGray | constant | 627 |
| clSnow | constant | 628 |
| clSpringGreen | constant | 629 |
| clSteelBlue | constant | 630 |
| clTan | constant | 631 |
| clTeal | constant | 43 |
| clThistle | constant | 632 |
| clTomato | constant | 633 |
| clTransparent | constant | 513 |
| clTurquoise | constant | 634 |
| clViolet | constant | 635 |
| clWheat | constant | 636 |
| clWhite | constant | 54 |
| clWhiteSmoke | constant | 637 |
| clYellow | constant | 48 |
| clYellowGreen | constant | 638 |
| colorAliceBlue | constant | 646 |
| colorAntiqueWhite | constant | 647 |
| colorAqua | constant | 648 |
| colorAquamarine | constant | 649 |
| colorAzure | constant | 650 |
| colorBeige | constant | 651 |
| colorBisque | constant | 652 |
| colorBlack | constant | 644 |
| colorBlanchedAlmond | constant | 653 |
| colorBlue | constant | 654 |
| colorBlueViolet | constant | 655 |
| colorBrown | constant | 656 |
| colorBurlyWood | constant | 657 |
| colorCadetBlue | constant | 658 |
| colorChartreuse | constant | 659 |
| colorChocolate | constant | 660 |
| colorCoral | constant | 661 |
| colorCornflowerBlue | constant | 662 |
| colorCornsilk | constant | 663 |
| colorCrimson | constant | 664 |
| colorCyan | constant | 665 |
| colorDarkBlue | constant | 666 |
| colorDarkCyan | constant | 667 |
| colorDarkGoldenRod | constant | 668 |
| colorDarkGray | constant | 669 |
| colorDarkGreen | constant | 671 |
| colorDarkGrey | constant | 670 |
| colorDarkKhaki | constant | 672 |
| colorDarkMagenta | constant | 673 |
| colorDarkOliveGreen | constant | 674 |
| colorDarkOrange | constant | 675 |
| colorDarkOrchid | constant | 676 |
| colorDarkRed | constant | 677 |
| colorDarkSalmon | constant | 678 |
| colorDarkSeaGreen | constant | 679 |
| colorDarkSlateBlue | constant | 680 |
| colorDarkSlateGray | constant | 681 |
| colorDarkSlateGrey | constant | 682 |
| colorDarkTurquoise | constant | 683 |
| colorDarkViolet | constant | 684 |
| colorDeepPink | constant | 685 |
| colorDeepSkyBlue | constant | 686 |
| colorDimGray | constant | 687 |
| colorDimGrey | constant | 688 |
| colorDodgerBlue | constant | 689 |
| colorFireBrick | constant | 690 |
| colorFloralWhite | constant | 691 |
| colorForestGreen | constant | 692 |
| colorFuchsia | constant | 693 |
| colorGainsboro | constant | 694 |
| colorGhostWhite | constant | 695 |
| colorGold | constant | 696 |
| colorGoldenRod | constant | 697 |
| colorGray | constant | 698 |
| colorGreen | constant | 700 |
| colorGreenYellow | constant | 701 |
| colorGrey | constant | 699 |
| colorHoneyDew | constant | 702 |
| colorHotPink | constant | 703 |
| colorIndianRed | constant | 704 |
| colorIndigo | constant | 705 |
| colorIvory | constant | 706 |
| colorKhaki | constant | 707 |
| colorLavender | constant | 708 |
| colorLavenderBlush | constant | 709 |
| colorLawnGreen | constant | 710 |
| colorLemonChiffon | constant | 711 |
| colorLightBlue | constant | 712 |
| colorLightCoral | constant | 713 |
| colorLightCyan | constant | 714 |
| colorLightGoldenRodYellow | constant | 715 |
| colorLightGray | constant | 716 |
| colorLightGreen | constant | 718 |
| colorLightGrey | constant | 717 |
| colorLightPink | constant | 719 |
| colorLightSalmon | constant | 720 |
| colorLightSeaGreen | constant | 721 |
| colorLightSkyBlue | constant | 722 |
| colorLightSlateGray | constant | 723 |
| colorLightSlateGrey | constant | 724 |
| colorLightSteelBlue | constant | 725 |
| colorLightYellow | constant | 726 |
| colorLime | constant | 727 |
| colorLimeGreen | constant | 728 |
| colorLinen | constant | 729 |
| colorMagenta | constant | 730 |
| colorMaroon | constant | 731 |
| colorMediumAquaMarine | constant | 732 |
| colorMediumBlue | constant | 733 |
| colorMediumOrchid | constant | 734 |
| colorMediumPurple | constant | 735 |
| colorMediumSeaGreen | constant | 736 |
| colorMediumSlateBlue | constant | 737 |
| colorMediumSpringGreen | constant | 738 |
| colorMediumTurquoise | constant | 739 |
| colorMediumVioletRed | constant | 740 |
| colorMidnightBlue | constant | 741 |
| colorMintCream | constant | 742 |
| colorMistyRose | constant | 743 |
| colorMoccasin | constant | 744 |
| colorNavajoWhite | constant | 745 |
| colorNavy | constant | 746 |
| colorOldLace | constant | 747 |
| colorOlive | constant | 748 |
| colorOliveDrab | constant | 749 |
| colorOrange | constant | 750 |
| colorOrangeRed | constant | 751 |
| colorOrchid | constant | 752 |
| colorPaleGoldenRod | constant | 753 |
| colorPaleGreen | constant | 754 |
| colorPaleTurquoise | constant | 755 |
| colorPaleVioletRed | constant | 756 |
| colorPapayaWhip | constant | 757 |
| colorPeachPuff | constant | 758 |
| colorPeru | constant | 759 |
| colorPink | constant | 760 |
| colorPlum | constant | 761 |
| colorPowderBlue | constant | 762 |
| colorPurple | constant | 763 |
| colorRebeccaPurple | constant | 764 |
| colorRed | constant | 765 |
| colorRosyBrown | constant | 766 |
| colorRoyalBlue | constant | 767 |
| colorSaddleBrown | constant | 768 |
| colorSalmon | constant | 769 |
| colorSandyBrown | constant | 770 |
| colorSeaGreen | constant | 771 |
| colorSeaShell | constant | 772 |
| colorSienna | constant | 773 |
| colorSilver | constant | 774 |
| colorSkyBlue | constant | 775 |
| colorSlateBlue | constant | 776 |
| colorSlateGray | constant | 777 |
| colorSlateGrey | constant | 778 |
| colorSnow | constant | 779 |
| colorSpringGreen | constant | 780 |
| colorSteelBlue | constant | 781 |
| colorTan | constant | 782 |
| colorTeal | constant | 783 |
| colorThistle | constant | 784 |
| ColorToHue | function | 807 |
| colorTomato | constant | 785 |
| ColorToStr | function | 800 |
| colorTurquoise | constant | 786 |
| colorViolet | constant | 787 |
| colorWheat | constant | 788 |
| colorWhite | constant | 645 |
| colorWhiteSmoke | constant | 789 |
| colorYellow | constant | 790 |
| colorYellowGreen | constant | 791 |
| Darken | function | 818 |
| DegToRad | function | 835 |
| Divide | function | 829 |
| Fade | function | 816 |
| Hue | function | 810 |
| HueInvert | function | 812 |
| HueToColor | function | 805 |
| IBitmap | interface | 1121 |
| Clear | procedure | 1133 |
| Clone | function | 1131 |
| Resample | function | 1135 |
| ClientRect | property | 1141 |
| Empty | property | 1137 |
| Format | property | 1143 |
| Surface | property | 1139 |
| IBitmapBrush | interface | 954 |
| IBrush | interface | 926 |
| Matrix | property | 935 |
| Opacity | property | 937 |
| IFont | interface | 990 |
| Color | property | 1009 |
| Kerning | property | 1017 |
| Name | property | 1007 |
| Quality | property | 1011 |
| Size | property | 1015 |
| Style | property | 1013 |
| IGradientBrush | interface | 964 |
| AddStop | procedure | 971 |
| Wrap | property | 973 |
| ILinearGradientBrush | interface | 978 |
| ImageFormatToMimeType | function | 1181 |
| ImageFormatToStr | function | 1179 |
| IMatrix | interface | 861 |
| Identity | procedure | 864 |
| Multiply | procedure | 866 |
| Rotate | procedure | 872 |
| Scale | procedure | 870 |
| Transform | function | 874 |
| Translate | procedure | 868 |
| IPath | interface | 1029 |
| Add | procedure | 1032 |
| Clip | procedure | 1040 |
| Close | procedure | 1036 |
| Join | procedure | 1038 |
| Remove | procedure | 1034 |
| Unclip | procedure | 1042 |
| IPathData | interface | 1022 |
| IPen | interface | 886 |
| Brush | property | 907 |
| Color | property | 909 |
| LineCap | property | 917 |
| LineJoin | property | 919 |
| LinePattern | property | 913 |
| LinePatternOffset | property | 915 |
| MiterLimit | property | 921 |
| Width | property | 911 |
| IRadialGradientBrush | interface | 984 |
| ISolidBrush | interface | 942 |
| Color | property | 949 |
| ISplash | interface | 1148 |
| Move | procedure | 1159 |
| Update | procedure | 1161 |
| Bitmap | property | 1163 |
| Handle | property | 1169 |
| Opacity | property | 1165 |
| Visible | property | 1167 |
| ISurface | interface | 1050 |
| ArcTo | procedure | 1075 |
| Clear | procedure | 1061 |
| CopyTo | procedure | 1064 |
| CurveTo | procedure | 1077 |
| Ellipse | procedure | 1079 |
| Fill | procedure | 1096 |
| FillRect | procedure | 1100 |
| FillRoundRect | procedure | 1104 |
| Flush | procedure | 1059 |
| LineTo | procedure | 1073 |
| MoveTo | procedure | 1071 |
| Rectangle | procedure | 1081 |
| Restore | procedure | 1069 |
| RoundRectangle | procedure | 1083 |
| Save | procedure | 1067 |
| Stroke | procedure | 1094 |
| StrokeRect | procedure | 1098 |
| StrokeRoundRect | procedure | 1102 |
| TextHeight | function | 1089 |
| TextOut | procedure | 1091 |
| TextSize | function | 1086 |
| Handle | property | 1110 |
| Matrix | property | 1106 |
| Path | property | 1108 |
| JoinCaps | constant | 1210 |
| Lighten | function | 820 |
| PenMiterLimitDefault | constant | 1174 |
| PixelSize | constant | 510 |
| RadToDeg | function | 837 |
| RegisterColorName | procedure | 802 |
| Remainder | function | 831 |
| Rgba | function | 822, 824 |
| StrToColor | function | 797 |
| StrToImageFormat | function | 1177 |
| SurfaceOptions | variable | 1201 |
| TBGRA | alias | 465 |
| TButtonRects | alias | 198 |
| TColor | alias | 32 |
| TColorAlpha | alias | 383 |
| TColorAlphaHelper | helper | 387 |
| Alpha | property | 405 |
| Blue | property | 399 |
| Green | property | 401 |
| Red | property | 403 |
| TColorB | record | 428 |
| Alpha | field | 431 |
| Blue | field | 431 |
| Green | field | 431 |
| Red | field | 431 |
| Blend | function | 449 |
| Color | function | 459 |
| Create | function | 445 |
| Darken | function | 453 |
| Desaturate | function | 451 |
| Fade | function | 457 |
| Invert | function | 447 |
| Lighten | function | 455 |
| TColorF | record | 482 |
| Alpha | field | 485 |
| Blue | field | 485 |
| Green | field | 485 |
| Red | field | 485 |
| Blend | function | 497 |
| Color | function | 503 |
| Create | function | 495 |
| Desaturate | function | 499 |
| Fade | function | 501 |
| TColorHelper | helper | 475 |
| Blend | function | 477 |
| TDirection | enum | 72 |
| drLeft | enum value | 72 |
| drUp | enum value | 72 |
| drRight | enum value | 72 |
| drDown | enum value | 72 |
| drCenter | enum value | 72 |
| drFill | enum value | 72 |
| drWrap | enum value | 72 |
| drFlow | enum value | 72 |
| TDirections | set | 74 |
| TDrawState | set | 87 |
| TDrawStateItem | enum | 84 |
| dsDisabled | enum value | 84 |
| dsPressed | enum value | 84 |
| dsSelected | enum value | 84 |
| dsHot | enum value | 84 |
| dsFocused | enum value | 84 |
| dsChecked | enum value | 84 |
| dsExpanded | enum value | 85 |
| dsDefaulted | enum value | 85 |
| dsThin | enum value | 85 |
| dsFlat | enum value | 85 |
| dsBackground | enum value | 85 |
| dsCustom | enum value | 85 |
| TGradientWrap | enum | 960 |
| gwClamp | enum value | 960 |
| gwRepeat | enum value | 960 |
| gwReflect | enum value | 960 |
| THSL | record | 411 |
| Hue | field | 414 |
| Lightness | field | 414 |
| Saturation | field | 414 |
| Create | function | 420 |
| TImageFormat | enum | 1116 |
| fmPng | enum value | 1116 |
| fmJpeg | enum value | 1116 |
| fmGif | enum value | 1116 |
| fmBmp | enum value | 1116 |
| fmIco | enum value | 1116 |
| fmTiff | enum value | 1116 |
| TLineCap | enum | 880 |
| cpButt | enum value | 880 |
| cpRound | enum value | 880 |
| cpSquare | enum value | 880 |
| TLineJoin | enum | 882 |
| jnMiter | enum value | 882 |
| jnRound | enum value | 882 |
| jnBevel | enum value | 882 |
| TLinePattern | enum | 878 |
| pnSolid | enum value | 878 |
| pnDash | enum value | 878 |
| pnDot | enum value | 878 |
| pnDashDot | enum value | 878 |
| TMatrix2x3 | record | 338 |
| M11 | field | 341 |
| M12 | field | 341 |
| M21 | field | 341 |
| M22 | field | 341 |
| M31 | field | 341 |
| M32 | field | 341 |
| Order | field | 343 |
| CanInvert | function | 353 |
| Create | function | 351 |
| Identity | procedure | 355 |
| Invert | procedure | 357 |
| Multiply | function | 374, 376 |
| Rotate | procedure | 359 |
| RotateAt | procedure | 361, 362 |
| Scale | procedure | 364 |
| ScaleAt | procedure | 366, 367 |
| Skew | procedure | 369 |
| Translate | procedure | 371, 372 |
| TPixel | alias | 469 |
| TPointF | record | 202 |
| X | field | 205 |
| Y | field | 205 |
| Angle | function | 231 |
| Create | function | 221, 223 |
| Dist | function | 233 |
| Distance | function | 244, 245 |
| Equals | function | 219 |
| Extend | function | 237 |
| Mid | function | 235 |
| Move | function | 228, 229 |
| Normalize | procedure | 247 |
| Offset | procedure | 225, 226 |
| Rotate | function | 239, 242 |
| TPointI | record | 91 |
| X | field | 94 |
| Y | field | 94 |
| Angle | function | 111 |
| Create | function | 107, 109 |
| Dist | function | 113 |
| Equals | function | 105 |
| Mid | function | 115 |
| Move | function | 120, 121 |
| Offset | procedure | 117, 118 |
| TRectF | record | 254 |
| Height | field | 275 |
| Width | field | 275 |
| X | field | 275 |
| Y | field | 275 |
| Center | procedure | 298, 299, 300 |
| Contains | function | 295, 296 |
| Create | function | 286, 288, 289, 291 |
| Equals | function | 293 |
| Inflate | procedure | 302, 303 |
| Offset | procedure | 305, 306 |
| Bottom | property | 316 |
| BottomLeft | property | 322 |
| BottomRight | property | 323 |
| Empty | property | 308 |
| Left | property | 310 |
| MidBottom | property | 330 |
| MidLeft | property | 327 |
| MidPoint | property | 325 |
| MidRight | property | 329 |
| MidTop | property | 328 |
| Right | property | 314 |
| Size | property | 318 |
| Top | property | 312 |
| TopLeft | property | 320 |
| TopRight | property | 321 |
| TRectI | record | 128 |
| Height | field | 145 |
| Width | field | 145 |
| X | field | 145 |
| Y | field | 145 |
| Center | procedure | 165, 166 |
| Contains | function | 162, 163 |
| Create | function | 153, 155, 156, 158 |
| Equals | function | 160 |
| Inflate | procedure | 168, 169 |
| Offset | procedure | 171, 172 |
| Bottom | property | 182 |
| BottomLeft | property | 187 |
| BottomRight | property | 188 |
| Empty | property | 174 |
| Left | property | 176 |
| MidPoint | property | 191 |
| Right | property | 180 |
| Size | property | 184 |
| Top | property | 178 |
| TopLeft | property | 186 |
| TopRight | property | 189 |
| TResampleQuality | enum | 1048 |
| rqLowest | enum value | 1048 |
| rqNormal | enum value | 1048 |
| rqBest | enum value | 1048 |
| TSurfaceOptions | record | 1186 |
| ErrorCorrection | field | 1194 |
| GammaCorrection | field | 1196 |
| HardwareRendering | field | 1188 |
| SoftwareBuffering | field | 1190 |