Date: 02-16-2022
Return to Index
created by gbSnippets
'Pens =========================================================================
Pens paint lines and curves
Cosmetic lines of fixed width, quickly drawn
Geometric scalable lines, lines with unique join styles, >1 pixel
'Cosmetic Pens
dimensions specified in device units
fixed wdith
drawn 3-10 times faster than cosmetic pen
Attributes: width
style
color
API CreatePen
CreatePenIndirect
ExtCreatePen
GetStockObject
'Geometric Pens
dimensions specified in logical units
can be sacled
Attributes: width
style
color
pattern
optional hatch
end style
join style
API ExtCreatePen
'Pen Attributes
Pen Width
Pen Style
Pen Color
Pen Pattern
Pen Hatch
Pen End Cap
Pen Join
'Brushes ===================================================================
Brushes paint the interior or polygons/ellipses/paths
Two types of brushes: logical description of ideal bitmap
physical actual bitmap
'Logical Brush
Four types Solid <-- has predefined
Hatch <-- has predefined
Stock
Pattern
API CreateBrushIndirect creates logical brush with style/color/pattern
'gbs_00944
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm