This file is indexed.

/usr/share/doc/libjuce/apiref/classGraphics.html is in libjuce-doc 4.3.0~repack-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JUCE: Graphics Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JUCE
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classGraphics-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Graphics Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A graphics context, used for drawing a component or image.  
 <a href="classGraphics.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics_1_1ScopedSaveState.html">ScopedSaveState</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uses RAII to save and restore the state of a graphics context.  <a href="classGraphics_1_1ScopedSaveState.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a5da218e649d1b5ac3d67443ae77caf87"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a5da218e649d1b5ac3d67443ae77caf87">ResamplingQuality</a> { <a class="el" href="classGraphics.html#a5da218e649d1b5ac3d67443ae77caf87a4eb9cfa2e544befd2d50708e3316b28e">lowResamplingQuality</a> = 0, 
<a class="el" href="classGraphics.html#a5da218e649d1b5ac3d67443ae77caf87a5d8dfbf84457e91eb309b1402562f2af">mediumResamplingQuality</a> = 1, 
<a class="el" href="classGraphics.html#a5da218e649d1b5ac3d67443ae77caf87ae3c4b3cdf28f0aefc035977522675e8e">highResamplingQuality</a> = 2
 }<tr class="memdesc:a5da218e649d1b5ac3d67443ae77caf87"><td class="mdescLeft">&#160;</td><td class="mdescRight">Types of rendering quality that can be specified when drawing images.  <a href="classGraphics.html#a5da218e649d1b5ac3d67443ae77caf87">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:a5da218e649d1b5ac3d67443ae77caf87"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ada6375a2e6bf68758a2191acb4d62c65"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#ada6375a2e6bf68758a2191acb4d62c65">Graphics</a> (const <a class="el" href="classImage.html">Image</a> &amp;imageToDrawOnto)</td></tr>
<tr class="memdesc:ada6375a2e6bf68758a2191acb4d62c65"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classGraphics.html" title="A graphics context, used for drawing a component or image. ">Graphics</a> object to draw directly onto the given image.  <a href="#ada6375a2e6bf68758a2191acb4d62c65">More...</a><br /></td></tr>
<tr class="separator:ada6375a2e6bf68758a2191acb4d62c65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7841c9a961ac9bca33bd30ddf8066cdb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a7841c9a961ac9bca33bd30ddf8066cdb">~Graphics</a> ()</td></tr>
<tr class="memdesc:a7841c9a961ac9bca33bd30ddf8066cdb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a7841c9a961ac9bca33bd30ddf8066cdb">More...</a><br /></td></tr>
<tr class="separator:a7841c9a961ac9bca33bd30ddf8066cdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a944a0006b7277fda473f0b1b4f028f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a9a944a0006b7277fda473f0b1b4f028f">setColour</a> (<a class="el" href="classColour.html">Colour</a> newColour)</td></tr>
<tr class="memdesc:a9a944a0006b7277fda473f0b1b4f028f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the current drawing colour.  <a href="#a9a944a0006b7277fda473f0b1b4f028f">More...</a><br /></td></tr>
<tr class="separator:a9a944a0006b7277fda473f0b1b4f028f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ce91a31ec1258a73ace93b6c337dbb2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a1ce91a31ec1258a73ace93b6c337dbb2">setOpacity</a> (float newOpacity)</td></tr>
<tr class="memdesc:a1ce91a31ec1258a73ace93b6c337dbb2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the opacity to use with the current colour.  <a href="#a1ce91a31ec1258a73ace93b6c337dbb2">More...</a><br /></td></tr>
<tr class="separator:a1ce91a31ec1258a73ace93b6c337dbb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57478bc2496ebb84696e5ba64b455965"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a57478bc2496ebb84696e5ba64b455965">setGradientFill</a> (const <a class="el" href="classColourGradient.html">ColourGradient</a> &amp;gradient)</td></tr>
<tr class="memdesc:a57478bc2496ebb84696e5ba64b455965"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the context to use a gradient for its fill pattern.  <a href="#a57478bc2496ebb84696e5ba64b455965">More...</a><br /></td></tr>
<tr class="separator:a57478bc2496ebb84696e5ba64b455965"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a675cd4c4715165f0a0aec0bd8c3fe390"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a675cd4c4715165f0a0aec0bd8c3fe390">setTiledImageFill</a> (const <a class="el" href="classImage.html">Image</a> &amp;imageToUse, int anchorX, int anchorY, float opacity)</td></tr>
<tr class="memdesc:a675cd4c4715165f0a0aec0bd8c3fe390"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the context to use a tiled image pattern for filling.  <a href="#a675cd4c4715165f0a0aec0bd8c3fe390">More...</a><br /></td></tr>
<tr class="separator:a675cd4c4715165f0a0aec0bd8c3fe390"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a763ea233d7b7c8e45e33c7ea8030ff48"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a763ea233d7b7c8e45e33c7ea8030ff48">setFillType</a> (const <a class="el" href="classFillType.html">FillType</a> &amp;newFill)</td></tr>
<tr class="memdesc:a763ea233d7b7c8e45e33c7ea8030ff48"><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the current fill settings.  <a href="#a763ea233d7b7c8e45e33c7ea8030ff48">More...</a><br /></td></tr>
<tr class="separator:a763ea233d7b7c8e45e33c7ea8030ff48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fbdb321975d90c45243027a61ac2be9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a1fbdb321975d90c45243027a61ac2be9">setFont</a> (const <a class="el" href="classFont.html">Font</a> &amp;newFont)</td></tr>
<tr class="memdesc:a1fbdb321975d90c45243027a61ac2be9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the font to use for subsequent text-drawing functions.  <a href="#a1fbdb321975d90c45243027a61ac2be9">More...</a><br /></td></tr>
<tr class="separator:a1fbdb321975d90c45243027a61ac2be9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c9a73240eab843cbf93393956910e72"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a8c9a73240eab843cbf93393956910e72">setFont</a> (float newFontHeight)</td></tr>
<tr class="memdesc:a8c9a73240eab843cbf93393956910e72"><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the size of the currently-selected font.  <a href="#a8c9a73240eab843cbf93393956910e72">More...</a><br /></td></tr>
<tr class="separator:a8c9a73240eab843cbf93393956910e72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6758212e3cce606c0d3dc8346a40f646"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classFont.html">Font</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a6758212e3cce606c0d3dc8346a40f646">getCurrentFont</a> () const</td></tr>
<tr class="memdesc:a6758212e3cce606c0d3dc8346a40f646"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the currently selected font.  <a href="#a6758212e3cce606c0d3dc8346a40f646">More...</a><br /></td></tr>
<tr class="separator:a6758212e3cce606c0d3dc8346a40f646"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c3b91876001e27ad256f9a381a8f58f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a4c3b91876001e27ad256f9a381a8f58f">drawSingleLineText</a> (const <a class="el" href="classString.html">String</a> &amp;text, int startX, int baselineY, <a class="el" href="classJustification.html">Justification</a> justification=<a class="el" href="classJustification.html#a1f8c07756c56fe8f31ed44964e51bfbca56156bb2892e32febf8011af9c5da653">Justification::left</a>) const</td></tr>
<tr class="memdesc:a4c3b91876001e27ad256f9a381a8f58f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a one-line text string.  <a href="#a4c3b91876001e27ad256f9a381a8f58f">More...</a><br /></td></tr>
<tr class="separator:a4c3b91876001e27ad256f9a381a8f58f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bd1b96c6f9f048009228b6bead2bf78"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a3bd1b96c6f9f048009228b6bead2bf78">drawMultiLineText</a> (const <a class="el" href="classString.html">String</a> &amp;text, int startX, int baselineY, int maximumLineWidth) const</td></tr>
<tr class="memdesc:a3bd1b96c6f9f048009228b6bead2bf78"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws text across multiple lines.  <a href="#a3bd1b96c6f9f048009228b6bead2bf78">More...</a><br /></td></tr>
<tr class="separator:a3bd1b96c6f9f048009228b6bead2bf78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff45fc088e19374d3984e44a5c7d7639"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#aff45fc088e19374d3984e44a5c7d7639">drawText</a> (const <a class="el" href="classString.html">String</a> &amp;text, int x, int y, int width, int height, <a class="el" href="classJustification.html">Justification</a> justificationType, bool useEllipsesIfTooBig=true) const</td></tr>
<tr class="memdesc:aff45fc088e19374d3984e44a5c7d7639"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a line of text within a specified rectangle.  <a href="#aff45fc088e19374d3984e44a5c7d7639">More...</a><br /></td></tr>
<tr class="separator:aff45fc088e19374d3984e44a5c7d7639"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c3c9a14db0d2c69c43a6c7b225a2b4d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a0c3c9a14db0d2c69c43a6c7b225a2b4d">drawText</a> (const <a class="el" href="classString.html">String</a> &amp;text, <a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt; area, <a class="el" href="classJustification.html">Justification</a> justificationType, bool useEllipsesIfTooBig=true) const</td></tr>
<tr class="memdesc:a0c3c9a14db0d2c69c43a6c7b225a2b4d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a line of text within a specified rectangle.  <a href="#a0c3c9a14db0d2c69c43a6c7b225a2b4d">More...</a><br /></td></tr>
<tr class="separator:a0c3c9a14db0d2c69c43a6c7b225a2b4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a752f0b4da69ec7574a94258ce3f6e29b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a752f0b4da69ec7574a94258ce3f6e29b">drawText</a> (const <a class="el" href="classString.html">String</a> &amp;text, <a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt; area, <a class="el" href="classJustification.html">Justification</a> justificationType, bool useEllipsesIfTooBig=true) const</td></tr>
<tr class="memdesc:a752f0b4da69ec7574a94258ce3f6e29b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a line of text within a specified rectangle.  <a href="#a752f0b4da69ec7574a94258ce3f6e29b">More...</a><br /></td></tr>
<tr class="separator:a752f0b4da69ec7574a94258ce3f6e29b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41c5a930dfc9b8cdd8c8a464f7e11b46"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a41c5a930dfc9b8cdd8c8a464f7e11b46">drawFittedText</a> (const <a class="el" href="classString.html">String</a> &amp;text, int x, int y, int width, int height, <a class="el" href="classJustification.html">Justification</a> justificationFlags, int maximumNumberOfLines, float minimumHorizontalScale=0.0f) const</td></tr>
<tr class="memdesc:a41c5a930dfc9b8cdd8c8a464f7e11b46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tries to draw a text string inside a given space.  <a href="#a41c5a930dfc9b8cdd8c8a464f7e11b46">More...</a><br /></td></tr>
<tr class="separator:a41c5a930dfc9b8cdd8c8a464f7e11b46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a295421ac744e2948a59c760fce420ecb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a295421ac744e2948a59c760fce420ecb">drawFittedText</a> (const <a class="el" href="classString.html">String</a> &amp;text, <a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt; area, <a class="el" href="classJustification.html">Justification</a> justificationFlags, int maximumNumberOfLines, float minimumHorizontalScale=0.0f) const</td></tr>
<tr class="memdesc:a295421ac744e2948a59c760fce420ecb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tries to draw a text string inside a given space.  <a href="#a295421ac744e2948a59c760fce420ecb">More...</a><br /></td></tr>
<tr class="separator:a295421ac744e2948a59c760fce420ecb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46fc8346e7c7c7cc6c9ff2aad76fa442"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a46fc8346e7c7c7cc6c9ff2aad76fa442">fillAll</a> () const</td></tr>
<tr class="memdesc:a46fc8346e7c7c7cc6c9ff2aad76fa442"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills the context's entire clip region with the current colour or brush.  <a href="#a46fc8346e7c7c7cc6c9ff2aad76fa442">More...</a><br /></td></tr>
<tr class="separator:a46fc8346e7c7c7cc6c9ff2aad76fa442"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33a5f54ce9834aa12af098dc31910198"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a33a5f54ce9834aa12af098dc31910198">fillAll</a> (<a class="el" href="classColour.html">Colour</a> colourToUse) const</td></tr>
<tr class="memdesc:a33a5f54ce9834aa12af098dc31910198"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills the context's entire clip region with a given colour.  <a href="#a33a5f54ce9834aa12af098dc31910198">More...</a><br /></td></tr>
<tr class="separator:a33a5f54ce9834aa12af098dc31910198"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a747de9976729f72d9f6188104e6b2215"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a747de9976729f72d9f6188104e6b2215">fillRect</a> (<a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt; rectangle) const</td></tr>
<tr class="memdesc:a747de9976729f72d9f6188104e6b2215"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills a rectangle with the current colour or brush.  <a href="#a747de9976729f72d9f6188104e6b2215">More...</a><br /></td></tr>
<tr class="separator:a747de9976729f72d9f6188104e6b2215"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade8f0449a6852fcc74d03301bb76b3fc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#ade8f0449a6852fcc74d03301bb76b3fc">fillRect</a> (<a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt; rectangle) const</td></tr>
<tr class="memdesc:ade8f0449a6852fcc74d03301bb76b3fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills a rectangle with the current colour or brush.  <a href="#ade8f0449a6852fcc74d03301bb76b3fc">More...</a><br /></td></tr>
<tr class="separator:ade8f0449a6852fcc74d03301bb76b3fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11feb75bac94121938bde5470dcbc6c1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a11feb75bac94121938bde5470dcbc6c1">fillRect</a> (int x, int y, int width, int height) const</td></tr>
<tr class="memdesc:a11feb75bac94121938bde5470dcbc6c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills a rectangle with the current colour or brush.  <a href="#a11feb75bac94121938bde5470dcbc6c1">More...</a><br /></td></tr>
<tr class="separator:a11feb75bac94121938bde5470dcbc6c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6682077656ad90d7b573015b72428ee"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#af6682077656ad90d7b573015b72428ee">fillRect</a> (float x, float y, float width, float height) const</td></tr>
<tr class="memdesc:af6682077656ad90d7b573015b72428ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills a rectangle with the current colour or brush.  <a href="#af6682077656ad90d7b573015b72428ee">More...</a><br /></td></tr>
<tr class="separator:af6682077656ad90d7b573015b72428ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa21f94a026bf57a86423a71c84907751"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#aa21f94a026bf57a86423a71c84907751">fillRectList</a> (const <a class="el" href="classRectangleList.html">RectangleList</a>&lt; float &gt; &amp;rectangles) const</td></tr>
<tr class="memdesc:aa21f94a026bf57a86423a71c84907751"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills a set of rectangles using the current colour or brush.  <a href="#aa21f94a026bf57a86423a71c84907751">More...</a><br /></td></tr>
<tr class="separator:aa21f94a026bf57a86423a71c84907751"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70808c5b1097ad2c5e59ebac4e03a872"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a70808c5b1097ad2c5e59ebac4e03a872">fillRectList</a> (const <a class="el" href="classRectangleList.html">RectangleList</a>&lt; int &gt; &amp;rectangles) const</td></tr>
<tr class="memdesc:a70808c5b1097ad2c5e59ebac4e03a872"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills a set of rectangles using the current colour or brush.  <a href="#a70808c5b1097ad2c5e59ebac4e03a872">More...</a><br /></td></tr>
<tr class="separator:a70808c5b1097ad2c5e59ebac4e03a872"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07adc8f0cde35b08bc3ac3ae037c32ba"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a07adc8f0cde35b08bc3ac3ae037c32ba">fillRoundedRectangle</a> (float x, float y, float width, float height, float cornerSize) const</td></tr>
<tr class="memdesc:a07adc8f0cde35b08bc3ac3ae037c32ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uses the current colour or brush to fill a rectangle with rounded corners.  <a href="#a07adc8f0cde35b08bc3ac3ae037c32ba">More...</a><br /></td></tr>
<tr class="separator:a07adc8f0cde35b08bc3ac3ae037c32ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bde045356fe8e92ce992170a9fd282a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a2bde045356fe8e92ce992170a9fd282a">fillRoundedRectangle</a> (<a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt; rectangle, float cornerSize) const</td></tr>
<tr class="memdesc:a2bde045356fe8e92ce992170a9fd282a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uses the current colour or brush to fill a rectangle with rounded corners.  <a href="#a2bde045356fe8e92ce992170a9fd282a">More...</a><br /></td></tr>
<tr class="separator:a2bde045356fe8e92ce992170a9fd282a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12e9751d445f9afba9fdd89d0a87751b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a12e9751d445f9afba9fdd89d0a87751b">fillCheckerBoard</a> (<a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt; area, int checkWidth, int checkHeight, <a class="el" href="classColour.html">Colour</a> colour1, <a class="el" href="classColour.html">Colour</a> colour2) const</td></tr>
<tr class="memdesc:a12e9751d445f9afba9fdd89d0a87751b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills a rectangle with a checkerboard pattern, alternating between two colours.  <a href="#a12e9751d445f9afba9fdd89d0a87751b">More...</a><br /></td></tr>
<tr class="separator:a12e9751d445f9afba9fdd89d0a87751b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42dc569175294c1e20e8177031a761af"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a42dc569175294c1e20e8177031a761af">drawRect</a> (int x, int y, int width, int height, int lineThickness=1) const</td></tr>
<tr class="memdesc:a42dc569175294c1e20e8177031a761af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a rectangular outline, using the current colour or brush.  <a href="#a42dc569175294c1e20e8177031a761af">More...</a><br /></td></tr>
<tr class="separator:a42dc569175294c1e20e8177031a761af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a270cc4b757af3768549645145e3ad2f9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a270cc4b757af3768549645145e3ad2f9">drawRect</a> (float x, float y, float width, float height, float lineThickness=1.0f) const</td></tr>
<tr class="memdesc:a270cc4b757af3768549645145e3ad2f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a rectangular outline, using the current colour or brush.  <a href="#a270cc4b757af3768549645145e3ad2f9">More...</a><br /></td></tr>
<tr class="separator:a270cc4b757af3768549645145e3ad2f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40c744ccf21b7cf87e91d611cffba4d2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a40c744ccf21b7cf87e91d611cffba4d2">drawRect</a> (<a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt; rectangle, int lineThickness=1) const</td></tr>
<tr class="memdesc:a40c744ccf21b7cf87e91d611cffba4d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a rectangular outline, using the current colour or brush.  <a href="#a40c744ccf21b7cf87e91d611cffba4d2">More...</a><br /></td></tr>
<tr class="separator:a40c744ccf21b7cf87e91d611cffba4d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2b0082121c4f861822c47c6ffb6a948"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#ac2b0082121c4f861822c47c6ffb6a948">drawRect</a> (<a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt; rectangle, float lineThickness=1.0f) const</td></tr>
<tr class="memdesc:ac2b0082121c4f861822c47c6ffb6a948"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a rectangular outline, using the current colour or brush.  <a href="#ac2b0082121c4f861822c47c6ffb6a948">More...</a><br /></td></tr>
<tr class="separator:ac2b0082121c4f861822c47c6ffb6a948"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5972cee7e293bf9205cea64cb86233b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#ac5972cee7e293bf9205cea64cb86233b">drawRoundedRectangle</a> (float x, float y, float width, float height, float cornerSize, float lineThickness) const</td></tr>
<tr class="memdesc:ac5972cee7e293bf9205cea64cb86233b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uses the current colour or brush to draw the outline of a rectangle with rounded corners.  <a href="#ac5972cee7e293bf9205cea64cb86233b">More...</a><br /></td></tr>
<tr class="separator:ac5972cee7e293bf9205cea64cb86233b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a81d9123f61a64776eeccddbba8286f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a3a81d9123f61a64776eeccddbba8286f">drawRoundedRectangle</a> (<a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt; rectangle, float cornerSize, float lineThickness) const</td></tr>
<tr class="memdesc:a3a81d9123f61a64776eeccddbba8286f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uses the current colour or brush to draw the outline of a rectangle with rounded corners.  <a href="#a3a81d9123f61a64776eeccddbba8286f">More...</a><br /></td></tr>
<tr class="separator:a3a81d9123f61a64776eeccddbba8286f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1b8d714d7c85655bceb7d5597343554"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#ac1b8d714d7c85655bceb7d5597343554">setPixel</a> (int x, int y) const</td></tr>
<tr class="memdesc:ac1b8d714d7c85655bceb7d5597343554"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills a 1x1 pixel using the current colour or brush.  <a href="#ac1b8d714d7c85655bceb7d5597343554">More...</a><br /></td></tr>
<tr class="separator:ac1b8d714d7c85655bceb7d5597343554"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae965bf1c5fadee50c665b6508eb3e8f4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#ae965bf1c5fadee50c665b6508eb3e8f4">fillEllipse</a> (float x, float y, float width, float height) const</td></tr>
<tr class="memdesc:ae965bf1c5fadee50c665b6508eb3e8f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills an ellipse with the current colour or brush.  <a href="#ae965bf1c5fadee50c665b6508eb3e8f4">More...</a><br /></td></tr>
<tr class="separator:ae965bf1c5fadee50c665b6508eb3e8f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acce4fac46893f6721d4cd5c9c15d8069"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#acce4fac46893f6721d4cd5c9c15d8069">fillEllipse</a> (<a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt; area) const</td></tr>
<tr class="memdesc:acce4fac46893f6721d4cd5c9c15d8069"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills an ellipse with the current colour or brush.  <a href="#acce4fac46893f6721d4cd5c9c15d8069">More...</a><br /></td></tr>
<tr class="separator:acce4fac46893f6721d4cd5c9c15d8069"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4cce288a14b690ce0eb3dd514559887"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#ae4cce288a14b690ce0eb3dd514559887">drawEllipse</a> (float x, float y, float width, float height, float lineThickness) const</td></tr>
<tr class="memdesc:ae4cce288a14b690ce0eb3dd514559887"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an elliptical stroke using the current colour or brush.  <a href="#ae4cce288a14b690ce0eb3dd514559887">More...</a><br /></td></tr>
<tr class="separator:ae4cce288a14b690ce0eb3dd514559887"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41a775f285e2ce2a5ace3ead44838702"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a41a775f285e2ce2a5ace3ead44838702">drawEllipse</a> (<a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt; area, float lineThickness) const</td></tr>
<tr class="memdesc:a41a775f285e2ce2a5ace3ead44838702"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an elliptical stroke using the current colour or brush.  <a href="#a41a775f285e2ce2a5ace3ead44838702">More...</a><br /></td></tr>
<tr class="separator:a41a775f285e2ce2a5ace3ead44838702"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95825b50a38aca2b2deeb1c2b183883c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a95825b50a38aca2b2deeb1c2b183883c">drawLine</a> (float startX, float startY, float endX, float endY) const</td></tr>
<tr class="memdesc:a95825b50a38aca2b2deeb1c2b183883c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a line between two points.  <a href="#a95825b50a38aca2b2deeb1c2b183883c">More...</a><br /></td></tr>
<tr class="separator:a95825b50a38aca2b2deeb1c2b183883c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd067c0f7c09a27708bc258adbfd976e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#abd067c0f7c09a27708bc258adbfd976e">drawLine</a> (float startX, float startY, float endX, float endY, float lineThickness) const</td></tr>
<tr class="memdesc:abd067c0f7c09a27708bc258adbfd976e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a line between two points with a given thickness.  <a href="#abd067c0f7c09a27708bc258adbfd976e">More...</a><br /></td></tr>
<tr class="separator:abd067c0f7c09a27708bc258adbfd976e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84e137df03789f9a6cfe80eecb3f792c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a84e137df03789f9a6cfe80eecb3f792c">drawLine</a> (const <a class="el" href="classLine.html">Line</a>&lt; float &gt; &amp;line) const</td></tr>
<tr class="memdesc:a84e137df03789f9a6cfe80eecb3f792c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a line between two points.  <a href="#a84e137df03789f9a6cfe80eecb3f792c">More...</a><br /></td></tr>
<tr class="separator:a84e137df03789f9a6cfe80eecb3f792c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a339e0c0a06984e463defa30998dc5bb9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a339e0c0a06984e463defa30998dc5bb9">drawLine</a> (const <a class="el" href="classLine.html">Line</a>&lt; float &gt; &amp;line, float lineThickness) const</td></tr>
<tr class="memdesc:a339e0c0a06984e463defa30998dc5bb9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a line between two points with a given thickness.  <a href="#a339e0c0a06984e463defa30998dc5bb9">More...</a><br /></td></tr>
<tr class="separator:a339e0c0a06984e463defa30998dc5bb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5e29da02dfafef5b2cff01cf2a71401"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#ad5e29da02dfafef5b2cff01cf2a71401">drawDashedLine</a> (const <a class="el" href="classLine.html">Line</a>&lt; float &gt; &amp;line, const float *dashLengths, int numDashLengths, float lineThickness=1.0f, int dashIndexToStartFrom=0) const</td></tr>
<tr class="memdesc:ad5e29da02dfafef5b2cff01cf2a71401"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a dashed line using a custom set of dash-lengths.  <a href="#ad5e29da02dfafef5b2cff01cf2a71401">More...</a><br /></td></tr>
<tr class="separator:ad5e29da02dfafef5b2cff01cf2a71401"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e800a2aaa10b3dd0db9aa08a58b0923"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a9e800a2aaa10b3dd0db9aa08a58b0923">drawVerticalLine</a> (int x, float top, float bottom) const</td></tr>
<tr class="memdesc:a9e800a2aaa10b3dd0db9aa08a58b0923"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a vertical line of pixels at a given x position.  <a href="#a9e800a2aaa10b3dd0db9aa08a58b0923">More...</a><br /></td></tr>
<tr class="separator:a9e800a2aaa10b3dd0db9aa08a58b0923"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6625d72cb899b3d213c3bb7a91409ff2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a6625d72cb899b3d213c3bb7a91409ff2">drawHorizontalLine</a> (int y, float left, float right) const</td></tr>
<tr class="memdesc:a6625d72cb899b3d213c3bb7a91409ff2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a horizontal line of pixels at a given y position.  <a href="#a6625d72cb899b3d213c3bb7a91409ff2">More...</a><br /></td></tr>
<tr class="separator:a6625d72cb899b3d213c3bb7a91409ff2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6480d43f0df95f2cbb89367406b4c093"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a6480d43f0df95f2cbb89367406b4c093">fillPath</a> (const <a class="el" href="classPath.html">Path</a> &amp;path) const</td></tr>
<tr class="memdesc:a6480d43f0df95f2cbb89367406b4c093"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills a path using the currently selected colour or brush.  <a href="#a6480d43f0df95f2cbb89367406b4c093">More...</a><br /></td></tr>
<tr class="separator:a6480d43f0df95f2cbb89367406b4c093"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38de6fda0a7476a5d94a533d02eadeee"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a38de6fda0a7476a5d94a533d02eadeee">fillPath</a> (const <a class="el" href="classPath.html">Path</a> &amp;path, const <a class="el" href="classAffineTransform.html">AffineTransform</a> &amp;transform) const</td></tr>
<tr class="memdesc:a38de6fda0a7476a5d94a533d02eadeee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills a path using the currently selected colour or brush, and adds a transform.  <a href="#a38de6fda0a7476a5d94a533d02eadeee">More...</a><br /></td></tr>
<tr class="separator:a38de6fda0a7476a5d94a533d02eadeee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5b231db22915f8b5b41f74db9459e88"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#aa5b231db22915f8b5b41f74db9459e88">strokePath</a> (const <a class="el" href="classPath.html">Path</a> &amp;path, const <a class="el" href="classPathStrokeType.html">PathStrokeType</a> &amp;strokeType, const <a class="el" href="classAffineTransform.html">AffineTransform</a> &amp;transform=<a class="el" href="classAffineTransform.html">AffineTransform</a>()) const</td></tr>
<tr class="memdesc:aa5b231db22915f8b5b41f74db9459e88"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a path's outline using the currently selected colour or brush.  <a href="#aa5b231db22915f8b5b41f74db9459e88">More...</a><br /></td></tr>
<tr class="separator:aa5b231db22915f8b5b41f74db9459e88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8415cbdf88bad182743f0d6a342cdff8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a8415cbdf88bad182743f0d6a342cdff8">drawArrow</a> (const <a class="el" href="classLine.html">Line</a>&lt; float &gt; &amp;line, float lineThickness, float arrowheadWidth, float arrowheadLength) const</td></tr>
<tr class="memdesc:a8415cbdf88bad182743f0d6a342cdff8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a line with an arrowhead at its end.  <a href="#a8415cbdf88bad182743f0d6a342cdff8">More...</a><br /></td></tr>
<tr class="separator:a8415cbdf88bad182743f0d6a342cdff8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f8160f9b0a6866e40cf1a2b45c3b892"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a0f8160f9b0a6866e40cf1a2b45c3b892">setImageResamplingQuality</a> (const <a class="el" href="classGraphics.html#a5da218e649d1b5ac3d67443ae77caf87">ResamplingQuality</a> newQuality)</td></tr>
<tr class="memdesc:a0f8160f9b0a6866e40cf1a2b45c3b892"><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the quality that will be used when resampling images.  <a href="#a0f8160f9b0a6866e40cf1a2b45c3b892">More...</a><br /></td></tr>
<tr class="separator:a0f8160f9b0a6866e40cf1a2b45c3b892"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a229be35e1ac1379530d5c9283932cd2b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a229be35e1ac1379530d5c9283932cd2b">drawImageAt</a> (const <a class="el" href="classImage.html">Image</a> &amp;imageToDraw, int topLeftX, int topLeftY, bool fillAlphaChannelWithCurrentBrush=false) const</td></tr>
<tr class="memdesc:a229be35e1ac1379530d5c9283932cd2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an image.  <a href="#a229be35e1ac1379530d5c9283932cd2b">More...</a><br /></td></tr>
<tr class="separator:a229be35e1ac1379530d5c9283932cd2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5afd17ef7993f8ec1e6ce4ecf721bbff"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a5afd17ef7993f8ec1e6ce4ecf721bbff">drawImage</a> (const <a class="el" href="classImage.html">Image</a> &amp;imageToDraw, int destX, int destY, int destWidth, int destHeight, int sourceX, int sourceY, int sourceWidth, int sourceHeight, bool fillAlphaChannelWithCurrentBrush=false) const</td></tr>
<tr class="memdesc:a5afd17ef7993f8ec1e6ce4ecf721bbff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws part of an image, rescaling it to fit in a given target region.  <a href="#a5afd17ef7993f8ec1e6ce4ecf721bbff">More...</a><br /></td></tr>
<tr class="separator:a5afd17ef7993f8ec1e6ce4ecf721bbff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa738caa959cc0f067eaaebca956a7012"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#aa738caa959cc0f067eaaebca956a7012">drawImageTransformed</a> (const <a class="el" href="classImage.html">Image</a> &amp;imageToDraw, const <a class="el" href="classAffineTransform.html">AffineTransform</a> &amp;transform, bool fillAlphaChannelWithCurrentBrush=false) const</td></tr>
<tr class="memdesc:aa738caa959cc0f067eaaebca956a7012"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an image, having applied an affine transform to it.  <a href="#aa738caa959cc0f067eaaebca956a7012">More...</a><br /></td></tr>
<tr class="separator:aa738caa959cc0f067eaaebca956a7012"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacaf3a0b803211e9332de2070ead1fda"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#aacaf3a0b803211e9332de2070ead1fda">drawImage</a> (const <a class="el" href="classImage.html">Image</a> &amp;imageToDraw, <a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt; targetArea, <a class="el" href="classRectanglePlacement.html">RectanglePlacement</a> placementWithinTarget=<a class="el" href="classRectanglePlacement.html#afd5464553fd6bb41d697f3fc1d7427eda592b34ff9ad1d85db16f2e02c6252b8b">RectanglePlacement::stretchToFit</a>, bool fillAlphaChannelWithCurrentBrush=false) const</td></tr>
<tr class="memdesc:aacaf3a0b803211e9332de2070ead1fda"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an image to fit within a designated rectangle.  <a href="#aacaf3a0b803211e9332de2070ead1fda">More...</a><br /></td></tr>
<tr class="separator:aacaf3a0b803211e9332de2070ead1fda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e6764c4892e710366369f579c40895b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a0e6764c4892e710366369f579c40895b">drawImageWithin</a> (const <a class="el" href="classImage.html">Image</a> &amp;imageToDraw, int destX, int destY, int destWidth, int destHeight, <a class="el" href="classRectanglePlacement.html">RectanglePlacement</a> placementWithinTarget, bool fillAlphaChannelWithCurrentBrush=false) const</td></tr>
<tr class="memdesc:a0e6764c4892e710366369f579c40895b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an image to fit within a designated rectangle.  <a href="#a0e6764c4892e710366369f579c40895b">More...</a><br /></td></tr>
<tr class="separator:a0e6764c4892e710366369f579c40895b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93dde7e2eff1a2dc794eb90061afb3b9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a93dde7e2eff1a2dc794eb90061afb3b9">getClipBounds</a> () const</td></tr>
<tr class="memdesc:a93dde7e2eff1a2dc794eb90061afb3b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the position of the bounding box for the current clipping region.  <a href="#a93dde7e2eff1a2dc794eb90061afb3b9">More...</a><br /></td></tr>
<tr class="separator:a93dde7e2eff1a2dc794eb90061afb3b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a832d908be1ba929f623158529f667851"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a832d908be1ba929f623158529f667851">clipRegionIntersects</a> (<a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt; area) const</td></tr>
<tr class="memdesc:a832d908be1ba929f623158529f667851"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether a rectangle overlaps the context's clipping region.  <a href="#a832d908be1ba929f623158529f667851">More...</a><br /></td></tr>
<tr class="separator:a832d908be1ba929f623158529f667851"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad97e058fcff2bc0e634eacc4ef1d7a5f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#ad97e058fcff2bc0e634eacc4ef1d7a5f">reduceClipRegion</a> (int x, int y, int width, int height)</td></tr>
<tr class="memdesc:ad97e058fcff2bc0e634eacc4ef1d7a5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Intersects the current clipping region with another region.  <a href="#ad97e058fcff2bc0e634eacc4ef1d7a5f">More...</a><br /></td></tr>
<tr class="separator:ad97e058fcff2bc0e634eacc4ef1d7a5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa6ccd6208c16ea4cf569120bad1a64d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#aaa6ccd6208c16ea4cf569120bad1a64d">reduceClipRegion</a> (<a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt; area)</td></tr>
<tr class="memdesc:aaa6ccd6208c16ea4cf569120bad1a64d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Intersects the current clipping region with another region.  <a href="#aaa6ccd6208c16ea4cf569120bad1a64d">More...</a><br /></td></tr>
<tr class="separator:aaa6ccd6208c16ea4cf569120bad1a64d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d2bde76da1377ab9a22df09f7aadbe7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a2d2bde76da1377ab9a22df09f7aadbe7">reduceClipRegion</a> (const <a class="el" href="classRectangleList.html">RectangleList</a>&lt; int &gt; &amp;clipRegion)</td></tr>
<tr class="memdesc:a2d2bde76da1377ab9a22df09f7aadbe7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Intersects the current clipping region with a rectangle list region.  <a href="#a2d2bde76da1377ab9a22df09f7aadbe7">More...</a><br /></td></tr>
<tr class="separator:a2d2bde76da1377ab9a22df09f7aadbe7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3718c74592ec0c1d0cb4e6fc5cec0f6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#ab3718c74592ec0c1d0cb4e6fc5cec0f6">reduceClipRegion</a> (const <a class="el" href="classPath.html">Path</a> &amp;path, const <a class="el" href="classAffineTransform.html">AffineTransform</a> &amp;transform=<a class="el" href="classAffineTransform.html">AffineTransform</a>())</td></tr>
<tr class="memdesc:ab3718c74592ec0c1d0cb4e6fc5cec0f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Intersects the current clipping region with a path.  <a href="#ab3718c74592ec0c1d0cb4e6fc5cec0f6">More...</a><br /></td></tr>
<tr class="separator:ab3718c74592ec0c1d0cb4e6fc5cec0f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a735b5096ea063020134fdf1c570dec9a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a735b5096ea063020134fdf1c570dec9a">reduceClipRegion</a> (const <a class="el" href="classImage.html">Image</a> &amp;image, const <a class="el" href="classAffineTransform.html">AffineTransform</a> &amp;transform)</td></tr>
<tr class="memdesc:a735b5096ea063020134fdf1c570dec9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Intersects the current clipping region with an image's alpha-channel.  <a href="#a735b5096ea063020134fdf1c570dec9a">More...</a><br /></td></tr>
<tr class="separator:a735b5096ea063020134fdf1c570dec9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50949e3315daf0cb8c3c0abbdb272720"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a50949e3315daf0cb8c3c0abbdb272720">excludeClipRegion</a> (<a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt; rectangleToExclude)</td></tr>
<tr class="memdesc:a50949e3315daf0cb8c3c0abbdb272720"><td class="mdescLeft">&#160;</td><td class="mdescRight">Excludes a rectangle to stop it being drawn into.  <a href="#a50949e3315daf0cb8c3c0abbdb272720">More...</a><br /></td></tr>
<tr class="separator:a50949e3315daf0cb8c3c0abbdb272720"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30ddcf1089e1644064a753ab862f7124"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a30ddcf1089e1644064a753ab862f7124">isClipEmpty</a> () const</td></tr>
<tr class="memdesc:a30ddcf1089e1644064a753ab862f7124"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if no drawing can be done because the clip region is zero.  <a href="#a30ddcf1089e1644064a753ab862f7124">More...</a><br /></td></tr>
<tr class="separator:a30ddcf1089e1644064a753ab862f7124"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4df35938684890f7adac0439e900ca8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#ab4df35938684890f7adac0439e900ca8">saveState</a> ()</td></tr>
<tr class="memdesc:ab4df35938684890f7adac0439e900ca8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Saves the current graphics state on an internal stack.  <a href="#ab4df35938684890f7adac0439e900ca8">More...</a><br /></td></tr>
<tr class="separator:ab4df35938684890f7adac0439e900ca8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac724e99c9a7bcd8b2987a484e269a368"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#ac724e99c9a7bcd8b2987a484e269a368">restoreState</a> ()</td></tr>
<tr class="memdesc:ac724e99c9a7bcd8b2987a484e269a368"><td class="mdescLeft">&#160;</td><td class="mdescRight">Restores a graphics state that was previously saved with <a class="el" href="classGraphics.html#ab4df35938684890f7adac0439e900ca8" title="Saves the current graphics state on an internal stack. ">saveState()</a>.  <a href="#ac724e99c9a7bcd8b2987a484e269a368">More...</a><br /></td></tr>
<tr class="separator:ac724e99c9a7bcd8b2987a484e269a368"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8d8ee1c6bb810074eff904fd3c21fc4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#ab8d8ee1c6bb810074eff904fd3c21fc4">beginTransparencyLayer</a> (float layerOpacity)</td></tr>
<tr class="memdesc:ab8d8ee1c6bb810074eff904fd3c21fc4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Begins rendering to an off-screen bitmap which will later be flattened onto the current context with the given opacity.  <a href="#ab8d8ee1c6bb810074eff904fd3c21fc4">More...</a><br /></td></tr>
<tr class="separator:ab8d8ee1c6bb810074eff904fd3c21fc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6b36ef8295dd83d33287a328e88ef9c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#ae6b36ef8295dd83d33287a328e88ef9c">endTransparencyLayer</a> ()</td></tr>
<tr class="memdesc:ae6b36ef8295dd83d33287a328e88ef9c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Completes a drawing operation to a temporary semi-transparent buffer.  <a href="#ae6b36ef8295dd83d33287a328e88ef9c">More...</a><br /></td></tr>
<tr class="separator:ae6b36ef8295dd83d33287a328e88ef9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9bb2542780177c4d8ace477241a83b6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#aa9bb2542780177c4d8ace477241a83b6">setOrigin</a> (<a class="el" href="classPoint.html">Point</a>&lt; int &gt; newOrigin)</td></tr>
<tr class="memdesc:aa9bb2542780177c4d8ace477241a83b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Moves the position of the context's origin.  <a href="#aa9bb2542780177c4d8ace477241a83b6">More...</a><br /></td></tr>
<tr class="separator:aa9bb2542780177c4d8ace477241a83b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f6c05af33aefe49851d0d1eb9294bea"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a9f6c05af33aefe49851d0d1eb9294bea">setOrigin</a> (int newOriginX, int newOriginY)</td></tr>
<tr class="memdesc:a9f6c05af33aefe49851d0d1eb9294bea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Moves the position of the context's origin.  <a href="#a9f6c05af33aefe49851d0d1eb9294bea">More...</a><br /></td></tr>
<tr class="separator:a9f6c05af33aefe49851d0d1eb9294bea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d9d400fdb96d3c6bbb640fb94b54d06"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a7d9d400fdb96d3c6bbb640fb94b54d06">addTransform</a> (const <a class="el" href="classAffineTransform.html">AffineTransform</a> &amp;transform)</td></tr>
<tr class="memdesc:a7d9d400fdb96d3c6bbb640fb94b54d06"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a transformation which will be performed on all the graphics operations that the context subsequently performs.  <a href="#a7d9d400fdb96d3c6bbb640fb94b54d06">More...</a><br /></td></tr>
<tr class="separator:a7d9d400fdb96d3c6bbb640fb94b54d06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8b7cd49bf1ff738c5ff848727e3bc75"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#ab8b7cd49bf1ff738c5ff848727e3bc75">resetToDefaultState</a> ()</td></tr>
<tr class="memdesc:ab8b7cd49bf1ff738c5ff848727e3bc75"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the current colour, brush, and font to default settings.  <a href="#ab8b7cd49bf1ff738c5ff848727e3bc75">More...</a><br /></td></tr>
<tr class="separator:ab8b7cd49bf1ff738c5ff848727e3bc75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aada39363c0c5220a4073861ebc250f32"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#aada39363c0c5220a4073861ebc250f32">isVectorDevice</a> () const</td></tr>
<tr class="memdesc:aada39363c0c5220a4073861ebc250f32"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if this context is drawing to a vector-based device, such as a printer.  <a href="#aada39363c0c5220a4073861ebc250f32">More...</a><br /></td></tr>
<tr class="separator:aada39363c0c5220a4073861ebc250f32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83d19d1d12f7cff6ed9eada236516a63"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a83d19d1d12f7cff6ed9eada236516a63">Graphics</a> (<a class="el" href="classLowLevelGraphicsContext.html">LowLevelGraphicsContext</a> &amp;) noexcept</td></tr>
<tr class="memdesc:a83d19d1d12f7cff6ed9eada236516a63"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a graphics that draws with a given low-level renderer.  <a href="#a83d19d1d12f7cff6ed9eada236516a63">More...</a><br /></td></tr>
<tr class="separator:a83d19d1d12f7cff6ed9eada236516a63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a504995c303f45cce740dda9fa67f1a64"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classLowLevelGraphicsContext.html">LowLevelGraphicsContext</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGraphics.html#a504995c303f45cce740dda9fa67f1a64">getInternalContext</a> () const noexcept</td></tr>
<tr class="separator:a504995c303f45cce740dda9fa67f1a64"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A graphics context, used for drawing a component or image. </p>
<p>When a <a class="el" href="classComponent.html" title="The base class for all JUCE user-interface objects. ">Component</a> needs painting, a <a class="el" href="classGraphics.html" title="A graphics context, used for drawing a component or image. ">Graphics</a> context is passed to its <a class="el" href="classComponent.html#a7cf1862f4af5909ea72827898114a182" title="Components can override this method to draw their content. ">Component::paint()</a> method, and this you then call methods within this object to actually draw the component's content.</p>
<p>A <a class="el" href="classGraphics.html" title="A graphics context, used for drawing a component or image. ">Graphics</a> can also be created from an image, to allow drawing directly onto that image.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classComponent.html#a7cf1862f4af5909ea72827898114a182" title="Components can override this method to draw their content. ">Component::paint</a> </dd></dl>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a5da218e649d1b5ac3d67443ae77caf87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5da218e649d1b5ac3d67443ae77caf87">&sect;&nbsp;</a></span>ResamplingQuality</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classGraphics.html#a5da218e649d1b5ac3d67443ae77caf87">Graphics::ResamplingQuality</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Types of rendering quality that can be specified when drawing images. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a0f8160f9b0a6866e40cf1a2b45c3b892" title="Changes the quality that will be used when resampling images. ">Graphics::setImageResamplingQuality</a> </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a5da218e649d1b5ac3d67443ae77caf87a4eb9cfa2e544befd2d50708e3316b28e"></a>lowResamplingQuality&#160;</td><td class="fielddoc"><p>Just uses a nearest-neighbour algorithm for resampling. </p>
</td></tr>
<tr><td class="fieldname"><a id="a5da218e649d1b5ac3d67443ae77caf87a5d8dfbf84457e91eb309b1402562f2af"></a>mediumResamplingQuality&#160;</td><td class="fielddoc"><p>Uses bilinear interpolation for upsampling and area-averaging for downsampling. </p>
</td></tr>
<tr><td class="fieldname"><a id="a5da218e649d1b5ac3d67443ae77caf87ae3c4b3cdf28f0aefc035977522675e8e"></a>highResamplingQuality&#160;</td><td class="fielddoc"><p>Uses bicubic interpolation for upsampling and area-averaging for downsampling. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ada6375a2e6bf68758a2191acb4d62c65"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada6375a2e6bf68758a2191acb4d62c65">&sect;&nbsp;</a></span>Graphics() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Graphics::Graphics </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classImage.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>imageToDrawOnto</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a <a class="el" href="classGraphics.html" title="A graphics context, used for drawing a component or image. ">Graphics</a> object to draw directly onto the given image. </p>
<p>The graphics object that is created will be set up to draw onto the image, with the context's clipping area being the entire size of the image, and its origin being the image's origin. To draw into a subsection of an image, use the <a class="el" href="classGraphics.html#ad97e058fcff2bc0e634eacc4ef1d7a5f" title="Intersects the current clipping region with another region. ">reduceClipRegion()</a> and <a class="el" href="classGraphics.html#aa9bb2542780177c4d8ace477241a83b6" title="Moves the position of the context&#39;s origin. ">setOrigin()</a> methods.</p>
<p>Obviously you shouldn't delete the image before this context is deleted. </p>

</div>
</div>
<a id="a7841c9a961ac9bca33bd30ddf8066cdb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7841c9a961ac9bca33bd30ddf8066cdb">&sect;&nbsp;</a></span>~Graphics()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Graphics::~Graphics </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destructor. </p>

</div>
</div>
<a id="a83d19d1d12f7cff6ed9eada236516a63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83d19d1d12f7cff6ed9eada236516a63">&sect;&nbsp;</a></span>Graphics() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Graphics::Graphics </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classLowLevelGraphicsContext.html">LowLevelGraphicsContext</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a graphics that draws with a given low-level renderer. </p>
<p>This method is intended for use only by people who know what they're doing. Note that the <a class="el" href="classLowLevelGraphicsContext.html" title="Interface class for graphics context objects, used internally by the Graphics class. ">LowLevelGraphicsContext</a> will NOT be deleted by this object. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a9a944a0006b7277fda473f0b1b4f028f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a944a0006b7277fda473f0b1b4f028f">&sect;&nbsp;</a></span>setColour()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::setColour </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classColour.html">Colour</a>&#160;</td>
          <td class="paramname"><em>newColour</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Changes the current drawing colour. </p>
<p>This sets the colour that will now be used for drawing operations - it also sets the opacity to that of the colour passed-in.</p>
<p>If a brush is being used when this method is called, the brush will be deselected, and any subsequent drawing will be done with a solid colour brush instead.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a1ce91a31ec1258a73ace93b6c337dbb2" title="Changes the opacity to use with the current colour. ">setOpacity</a> </dd></dl>

</div>
</div>
<a id="a1ce91a31ec1258a73ace93b6c337dbb2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ce91a31ec1258a73ace93b6c337dbb2">&sect;&nbsp;</a></span>setOpacity()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::setOpacity </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>newOpacity</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Changes the opacity to use with the current colour. </p>
<p>If a solid colour is being used for drawing, this changes its opacity to this new value (i.e. it doesn't multiply the colour's opacity by this amount).</p>
<p>If a gradient is being used, this will have no effect on it.</p>
<p>A value of 0.0 is completely transparent, 1.0 is completely opaque. </p>

</div>
</div>
<a id="a57478bc2496ebb84696e5ba64b455965"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57478bc2496ebb84696e5ba64b455965">&sect;&nbsp;</a></span>setGradientFill()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::setGradientFill </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classColourGradient.html">ColourGradient</a> &amp;&#160;</td>
          <td class="paramname"><em>gradient</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the context to use a gradient for its fill pattern. </p>

</div>
</div>
<a id="a675cd4c4715165f0a0aec0bd8c3fe390"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a675cd4c4715165f0a0aec0bd8c3fe390">&sect;&nbsp;</a></span>setTiledImageFill()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::setTiledImageFill </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classImage.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>imageToUse</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>anchorX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>anchorY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>opacity</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the context to use a tiled image pattern for filling. </p>
<p>Make sure that you don't delete this image while it's still being used by this context! </p>

</div>
</div>
<a id="a763ea233d7b7c8e45e33c7ea8030ff48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a763ea233d7b7c8e45e33c7ea8030ff48">&sect;&nbsp;</a></span>setFillType()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::setFillType </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classFillType.html">FillType</a> &amp;&#160;</td>
          <td class="paramname"><em>newFill</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Changes the current fill settings. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a9a944a0006b7277fda473f0b1b4f028f" title="Changes the current drawing colour. ">setColour</a>, <a class="el" href="classGraphics.html#a57478bc2496ebb84696e5ba64b455965" title="Sets the context to use a gradient for its fill pattern. ">setGradientFill</a>, <a class="el" href="classGraphics.html#a675cd4c4715165f0a0aec0bd8c3fe390" title="Sets the context to use a tiled image pattern for filling. ">setTiledImageFill</a> </dd></dl>

</div>
</div>
<a id="a1fbdb321975d90c45243027a61ac2be9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1fbdb321975d90c45243027a61ac2be9">&sect;&nbsp;</a></span>setFont() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::setFont </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classFont.html">Font</a> &amp;&#160;</td>
          <td class="paramname"><em>newFont</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Changes the font to use for subsequent text-drawing functions. </p>
<p>Note there's also a setFont (float, int) method to quickly change the size and style of the current font.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a4c3b91876001e27ad256f9a381a8f58f" title="Draws a one-line text string. ">drawSingleLineText</a>, <a class="el" href="classGraphics.html#a3bd1b96c6f9f048009228b6bead2bf78" title="Draws text across multiple lines. ">drawMultiLineText</a>, <a class="el" href="classGraphics.html#aff45fc088e19374d3984e44a5c7d7639" title="Draws a line of text within a specified rectangle. ">drawText</a>, <a class="el" href="classGraphics.html#a41c5a930dfc9b8cdd8c8a464f7e11b46" title="Tries to draw a text string inside a given space. ">drawFittedText</a> </dd></dl>

</div>
</div>
<a id="a8c9a73240eab843cbf93393956910e72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c9a73240eab843cbf93393956910e72">&sect;&nbsp;</a></span>setFont() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::setFont </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>newFontHeight</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Changes the size of the currently-selected font. </p>
<p>This is a convenient shortcut that changes the context's current font to a different size. The typeface won't be changed. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classFont.html" title="Represents a particular font, including its size, style, etc. ">Font</a> </dd></dl>

</div>
</div>
<a id="a6758212e3cce606c0d3dc8346a40f646"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6758212e3cce606c0d3dc8346a40f646">&sect;&nbsp;</a></span>getCurrentFont()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classFont.html">Font</a> Graphics::getCurrentFont </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the currently selected font. </p>

</div>
</div>
<a id="a4c3b91876001e27ad256f9a381a8f58f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c3b91876001e27ad256f9a381a8f58f">&sect;&nbsp;</a></span>drawSingleLineText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawSingleLineText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classString.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>startX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>baselineY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classJustification.html">Justification</a>&#160;</td>
          <td class="paramname"><em>justification</em> = <code><a class="el" href="classJustification.html#a1f8c07756c56fe8f31ed44964e51bfbca56156bb2892e32febf8011af9c5da653">Justification::left</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a one-line text string. </p>
<p>This will use the current colour (or brush) to fill the text. The font is the last one specified by <a class="el" href="classGraphics.html#a1fbdb321975d90c45243027a61ac2be9" title="Changes the font to use for subsequent text-drawing functions. ">setFont()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>the string to draw </td></tr>
    <tr><td class="paramname">startX</td><td>the position to draw the left-hand edge of the text </td></tr>
    <tr><td class="paramname">baselineY</td><td>the position of the text's baseline </td></tr>
    <tr><td class="paramname">justification</td><td>the horizontal flags indicate which end of the text string is anchored at the specified point. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a3bd1b96c6f9f048009228b6bead2bf78" title="Draws text across multiple lines. ">drawMultiLineText</a>, <a class="el" href="classGraphics.html#aff45fc088e19374d3984e44a5c7d7639" title="Draws a line of text within a specified rectangle. ">drawText</a>, <a class="el" href="classGraphics.html#a41c5a930dfc9b8cdd8c8a464f7e11b46" title="Tries to draw a text string inside a given space. ">drawFittedText</a>, <a class="el" href="classGlyphArrangement.html#a0ace103d7c4b6600dcea7aff1f26811d" title="Appends a line of text to the arrangement. ">GlyphArrangement::addLineOfText</a> </dd></dl>

</div>
</div>
<a id="a3bd1b96c6f9f048009228b6bead2bf78"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bd1b96c6f9f048009228b6bead2bf78">&sect;&nbsp;</a></span>drawMultiLineText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawMultiLineText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classString.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>startX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>baselineY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>maximumLineWidth</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws text across multiple lines. </p>
<p>This will break the text onto a new line where there's a new-line or carriage-return character, or at a word-boundary when the text becomes wider than the size specified by the maximumLineWidth parameter.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a1fbdb321975d90c45243027a61ac2be9" title="Changes the font to use for subsequent text-drawing functions. ">setFont</a>, <a class="el" href="classGraphics.html#a4c3b91876001e27ad256f9a381a8f58f" title="Draws a one-line text string. ">drawSingleLineText</a>, <a class="el" href="classGraphics.html#a41c5a930dfc9b8cdd8c8a464f7e11b46" title="Tries to draw a text string inside a given space. ">drawFittedText</a>, <a class="el" href="classGlyphArrangement.html#ada407e56eab976b046f880729411771f" title="Adds some multi-line text, breaking lines at word-boundaries if they are too wide. ">GlyphArrangement::addJustifiedText</a> </dd></dl>

</div>
</div>
<a id="aff45fc088e19374d3984e44a5c7d7639"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff45fc088e19374d3984e44a5c7d7639">&sect;&nbsp;</a></span>drawText() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classString.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classJustification.html">Justification</a>&#160;</td>
          <td class="paramname"><em>justificationType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>useEllipsesIfTooBig</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a line of text within a specified rectangle. </p>
<p>The text will be positioned within the rectangle based on the justification flags passed-in. If the string is too long to fit inside the rectangle, it will either be truncated or will have ellipsis added to its end (if the useEllipsesIfTooBig flag is true).</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a4c3b91876001e27ad256f9a381a8f58f" title="Draws a one-line text string. ">drawSingleLineText</a>, <a class="el" href="classGraphics.html#a41c5a930dfc9b8cdd8c8a464f7e11b46" title="Tries to draw a text string inside a given space. ">drawFittedText</a>, <a class="el" href="classGraphics.html#a3bd1b96c6f9f048009228b6bead2bf78" title="Draws text across multiple lines. ">drawMultiLineText</a>, <a class="el" href="classGlyphArrangement.html#ada407e56eab976b046f880729411771f" title="Adds some multi-line text, breaking lines at word-boundaries if they are too wide. ">GlyphArrangement::addJustifiedText</a> </dd></dl>

</div>
</div>
<a id="a0c3c9a14db0d2c69c43a6c7b225a2b4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c3c9a14db0d2c69c43a6c7b225a2b4d">&sect;&nbsp;</a></span>drawText() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classString.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt;&#160;</td>
          <td class="paramname"><em>area</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classJustification.html">Justification</a>&#160;</td>
          <td class="paramname"><em>justificationType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>useEllipsesIfTooBig</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a line of text within a specified rectangle. </p>
<p>The text will be positioned within the rectangle based on the justification flags passed-in. If the string is too long to fit inside the rectangle, it will either be truncated or will have ellipsis added to its end (if the useEllipsesIfTooBig flag is true).</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a4c3b91876001e27ad256f9a381a8f58f" title="Draws a one-line text string. ">drawSingleLineText</a>, <a class="el" href="classGraphics.html#a41c5a930dfc9b8cdd8c8a464f7e11b46" title="Tries to draw a text string inside a given space. ">drawFittedText</a>, <a class="el" href="classGraphics.html#a3bd1b96c6f9f048009228b6bead2bf78" title="Draws text across multiple lines. ">drawMultiLineText</a>, <a class="el" href="classGlyphArrangement.html#ada407e56eab976b046f880729411771f" title="Adds some multi-line text, breaking lines at word-boundaries if they are too wide. ">GlyphArrangement::addJustifiedText</a> </dd></dl>

</div>
</div>
<a id="a752f0b4da69ec7574a94258ce3f6e29b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a752f0b4da69ec7574a94258ce3f6e29b">&sect;&nbsp;</a></span>drawText() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classString.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt;&#160;</td>
          <td class="paramname"><em>area</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classJustification.html">Justification</a>&#160;</td>
          <td class="paramname"><em>justificationType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>useEllipsesIfTooBig</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a line of text within a specified rectangle. </p>
<p>The text will be positioned within the rectangle based on the justification flags passed-in. If the string is too long to fit inside the rectangle, it will either be truncated or will have ellipsis added to its end (if the useEllipsesIfTooBig flag is true).</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a4c3b91876001e27ad256f9a381a8f58f" title="Draws a one-line text string. ">drawSingleLineText</a>, <a class="el" href="classGraphics.html#a41c5a930dfc9b8cdd8c8a464f7e11b46" title="Tries to draw a text string inside a given space. ">drawFittedText</a>, <a class="el" href="classGraphics.html#a3bd1b96c6f9f048009228b6bead2bf78" title="Draws text across multiple lines. ">drawMultiLineText</a>, <a class="el" href="classGlyphArrangement.html#ada407e56eab976b046f880729411771f" title="Adds some multi-line text, breaking lines at word-boundaries if they are too wide. ">GlyphArrangement::addJustifiedText</a> </dd></dl>

</div>
</div>
<a id="a41c5a930dfc9b8cdd8c8a464f7e11b46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41c5a930dfc9b8cdd8c8a464f7e11b46">&sect;&nbsp;</a></span>drawFittedText() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawFittedText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classString.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classJustification.html">Justification</a>&#160;</td>
          <td class="paramname"><em>justificationFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>maximumNumberOfLines</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>minimumHorizontalScale</em> = <code>0.0f</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Tries to draw a text string inside a given space. </p>
<p>This does its best to make the given text readable within the specified rectangle, so it useful for labelling things.</p>
<p>If the text is too big, it'll be squashed horizontally or broken over multiple lines if the maximumLinesToUse value allows this. If the text just won't fit into the space, it'll cram as much as possible in there, and put some ellipsis at the end to show that it's been truncated.</p>
<p>A <a class="el" href="classJustification.html" title="Represents a type of justification to be used when positioning graphical items. ">Justification</a> parameter lets you specify how the text is laid out within the rectangle, both horizontally and vertically.</p>
<p>The minimumHorizontalScale parameter specifies how much the text can be squashed horizontally to try to squeeze it into the space. If you don't want any horizontal scaling to occur, you can set this value to 1.0f. Pass 0 if you want it to use a default value.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGlyphArrangement.html#a96a7fd525bab5cc2330c1c4e9f13d6d5" title="Tries to fit some text within a given space. ">GlyphArrangement::addFittedText</a> </dd></dl>

</div>
</div>
<a id="a295421ac744e2948a59c760fce420ecb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a295421ac744e2948a59c760fce420ecb">&sect;&nbsp;</a></span>drawFittedText() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawFittedText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classString.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt;&#160;</td>
          <td class="paramname"><em>area</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classJustification.html">Justification</a>&#160;</td>
          <td class="paramname"><em>justificationFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>maximumNumberOfLines</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>minimumHorizontalScale</em> = <code>0.0f</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Tries to draw a text string inside a given space. </p>
<p>This does its best to make the given text readable within the specified rectangle, so it useful for labelling things.</p>
<p>If the text is too big, it'll be squashed horizontally or broken over multiple lines if the maximumLinesToUse value allows this. If the text just won't fit into the space, it'll cram as much as possible in there, and put some ellipsis at the end to show that it's been truncated.</p>
<p>A <a class="el" href="classJustification.html" title="Represents a type of justification to be used when positioning graphical items. ">Justification</a> parameter lets you specify how the text is laid out within the rectangle, both horizontally and vertically.</p>
<p>The minimumHorizontalScale parameter specifies how much the text can be squashed horizontally to try to squeeze it into the space. If you don't want any horizontal scaling to occur, you can set this value to 1.0f. Pass 0 if you want it to use a default value.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGlyphArrangement.html#a96a7fd525bab5cc2330c1c4e9f13d6d5" title="Tries to fit some text within a given space. ">GlyphArrangement::addFittedText</a> </dd></dl>

</div>
</div>
<a id="a46fc8346e7c7c7cc6c9ff2aad76fa442"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46fc8346e7c7c7cc6c9ff2aad76fa442">&sect;&nbsp;</a></span>fillAll() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::fillAll </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills the context's entire clip region with the current colour or brush. </p>
<p>(See also the fillAll (<a class="el" href="classColour.html" title="Represents a colour, also including a transparency value. ">Colour</a>) method which is a quick way of filling it with a given colour). </p>

</div>
</div>
<a id="a33a5f54ce9834aa12af098dc31910198"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33a5f54ce9834aa12af098dc31910198">&sect;&nbsp;</a></span>fillAll() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::fillAll </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classColour.html">Colour</a>&#160;</td>
          <td class="paramname"><em>colourToUse</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills the context's entire clip region with a given colour. </p>
<p>This leaves the context's current colour and brush unchanged, it just uses the specified colour temporarily. </p>

</div>
</div>
<a id="a747de9976729f72d9f6188104e6b2215"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a747de9976729f72d9f6188104e6b2215">&sect;&nbsp;</a></span>fillRect() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::fillRect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt;&#160;</td>
          <td class="paramname"><em>rectangle</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills a rectangle with the current colour or brush. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a42dc569175294c1e20e8177031a761af" title="Draws a rectangular outline, using the current colour or brush. ">drawRect</a>, <a class="el" href="classGraphics.html#a07adc8f0cde35b08bc3ac3ae037c32ba" title="Uses the current colour or brush to fill a rectangle with rounded corners. ">fillRoundedRectangle</a> </dd></dl>

</div>
</div>
<a id="ade8f0449a6852fcc74d03301bb76b3fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade8f0449a6852fcc74d03301bb76b3fc">&sect;&nbsp;</a></span>fillRect() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::fillRect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt;&#160;</td>
          <td class="paramname"><em>rectangle</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills a rectangle with the current colour or brush. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a42dc569175294c1e20e8177031a761af" title="Draws a rectangular outline, using the current colour or brush. ">drawRect</a>, <a class="el" href="classGraphics.html#a07adc8f0cde35b08bc3ac3ae037c32ba" title="Uses the current colour or brush to fill a rectangle with rounded corners. ">fillRoundedRectangle</a> </dd></dl>

</div>
</div>
<a id="a11feb75bac94121938bde5470dcbc6c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11feb75bac94121938bde5470dcbc6c1">&sect;&nbsp;</a></span>fillRect() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::fillRect </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills a rectangle with the current colour or brush. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a42dc569175294c1e20e8177031a761af" title="Draws a rectangular outline, using the current colour or brush. ">drawRect</a>, <a class="el" href="classGraphics.html#a07adc8f0cde35b08bc3ac3ae037c32ba" title="Uses the current colour or brush to fill a rectangle with rounded corners. ">fillRoundedRectangle</a> </dd></dl>

</div>
</div>
<a id="af6682077656ad90d7b573015b72428ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6682077656ad90d7b573015b72428ee">&sect;&nbsp;</a></span>fillRect() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::fillRect </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills a rectangle with the current colour or brush. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a42dc569175294c1e20e8177031a761af" title="Draws a rectangular outline, using the current colour or brush. ">drawRect</a>, <a class="el" href="classGraphics.html#a07adc8f0cde35b08bc3ac3ae037c32ba" title="Uses the current colour or brush to fill a rectangle with rounded corners. ">fillRoundedRectangle</a> </dd></dl>

</div>
</div>
<a id="aa21f94a026bf57a86423a71c84907751"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa21f94a026bf57a86423a71c84907751">&sect;&nbsp;</a></span>fillRectList() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::fillRectList </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classRectangleList.html">RectangleList</a>&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>rectangles</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills a set of rectangles using the current colour or brush. </p>
<p>If you have a lot of rectangles to draw, it may be more efficient to create a <a class="el" href="classRectangleList.html" title="Maintains a set of rectangles as a complex region. ">RectangleList</a> and use this method than to call <a class="el" href="classGraphics.html#a747de9976729f72d9f6188104e6b2215" title="Fills a rectangle with the current colour or brush. ">fillRect()</a> multiple times. </p>

</div>
</div>
<a id="a70808c5b1097ad2c5e59ebac4e03a872"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70808c5b1097ad2c5e59ebac4e03a872">&sect;&nbsp;</a></span>fillRectList() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::fillRectList </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classRectangleList.html">RectangleList</a>&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>rectangles</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills a set of rectangles using the current colour or brush. </p>
<p>If you have a lot of rectangles to draw, it may be more efficient to create a <a class="el" href="classRectangleList.html" title="Maintains a set of rectangles as a complex region. ">RectangleList</a> and use this method than to call <a class="el" href="classGraphics.html#a747de9976729f72d9f6188104e6b2215" title="Fills a rectangle with the current colour or brush. ">fillRect()</a> multiple times. </p>

</div>
</div>
<a id="a07adc8f0cde35b08bc3ac3ae037c32ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07adc8f0cde35b08bc3ac3ae037c32ba">&sect;&nbsp;</a></span>fillRoundedRectangle() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::fillRoundedRectangle </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>cornerSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Uses the current colour or brush to fill a rectangle with rounded corners. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#ac5972cee7e293bf9205cea64cb86233b" title="Uses the current colour or brush to draw the outline of a rectangle with rounded corners. ">drawRoundedRectangle</a>, <a class="el" href="classPath.html#a501f83b0e323fe86d33c047f83451065" title="Adds a rectangle with rounded corners to the path. ">Path::addRoundedRectangle</a> </dd></dl>

</div>
</div>
<a id="a2bde045356fe8e92ce992170a9fd282a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2bde045356fe8e92ce992170a9fd282a">&sect;&nbsp;</a></span>fillRoundedRectangle() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::fillRoundedRectangle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt;&#160;</td>
          <td class="paramname"><em>rectangle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>cornerSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Uses the current colour or brush to fill a rectangle with rounded corners. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#ac5972cee7e293bf9205cea64cb86233b" title="Uses the current colour or brush to draw the outline of a rectangle with rounded corners. ">drawRoundedRectangle</a>, <a class="el" href="classPath.html#a501f83b0e323fe86d33c047f83451065" title="Adds a rectangle with rounded corners to the path. ">Path::addRoundedRectangle</a> </dd></dl>

</div>
</div>
<a id="a12e9751d445f9afba9fdd89d0a87751b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12e9751d445f9afba9fdd89d0a87751b">&sect;&nbsp;</a></span>fillCheckerBoard()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::fillCheckerBoard </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt;&#160;</td>
          <td class="paramname"><em>area</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>checkWidth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>checkHeight</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classColour.html">Colour</a>&#160;</td>
          <td class="paramname"><em>colour1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classColour.html">Colour</a>&#160;</td>
          <td class="paramname"><em>colour2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills a rectangle with a checkerboard pattern, alternating between two colours. </p>

</div>
</div>
<a id="a42dc569175294c1e20e8177031a761af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42dc569175294c1e20e8177031a761af">&sect;&nbsp;</a></span>drawRect() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawRect </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>lineThickness</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a rectangular outline, using the current colour or brush. </p>
<p>The lines are drawn inside the given rectangle, and greater line thicknesses extend inwards. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a747de9976729f72d9f6188104e6b2215" title="Fills a rectangle with the current colour or brush. ">fillRect</a> </dd></dl>

</div>
</div>
<a id="a270cc4b757af3768549645145e3ad2f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a270cc4b757af3768549645145e3ad2f9">&sect;&nbsp;</a></span>drawRect() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawRect </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>lineThickness</em> = <code>1.0f</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a rectangular outline, using the current colour or brush. </p>
<p>The lines are drawn inside the given rectangle, and greater line thicknesses extend inwards. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a747de9976729f72d9f6188104e6b2215" title="Fills a rectangle with the current colour or brush. ">fillRect</a> </dd></dl>

</div>
</div>
<a id="a40c744ccf21b7cf87e91d611cffba4d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40c744ccf21b7cf87e91d611cffba4d2">&sect;&nbsp;</a></span>drawRect() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawRect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt;&#160;</td>
          <td class="paramname"><em>rectangle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>lineThickness</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a rectangular outline, using the current colour or brush. </p>
<p>The lines are drawn inside the given rectangle, and greater line thicknesses extend inwards. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a747de9976729f72d9f6188104e6b2215" title="Fills a rectangle with the current colour or brush. ">fillRect</a> </dd></dl>

</div>
</div>
<a id="ac2b0082121c4f861822c47c6ffb6a948"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2b0082121c4f861822c47c6ffb6a948">&sect;&nbsp;</a></span>drawRect() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawRect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt;&#160;</td>
          <td class="paramname"><em>rectangle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>lineThickness</em> = <code>1.0f</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a rectangular outline, using the current colour or brush. </p>
<p>The lines are drawn inside the given rectangle, and greater line thicknesses extend inwards. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a747de9976729f72d9f6188104e6b2215" title="Fills a rectangle with the current colour or brush. ">fillRect</a> </dd></dl>

</div>
</div>
<a id="ac5972cee7e293bf9205cea64cb86233b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5972cee7e293bf9205cea64cb86233b">&sect;&nbsp;</a></span>drawRoundedRectangle() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawRoundedRectangle </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>cornerSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>lineThickness</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Uses the current colour or brush to draw the outline of a rectangle with rounded corners. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a07adc8f0cde35b08bc3ac3ae037c32ba" title="Uses the current colour or brush to fill a rectangle with rounded corners. ">fillRoundedRectangle</a>, <a class="el" href="classPath.html#a501f83b0e323fe86d33c047f83451065" title="Adds a rectangle with rounded corners to the path. ">Path::addRoundedRectangle</a> </dd></dl>

</div>
</div>
<a id="a3a81d9123f61a64776eeccddbba8286f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a81d9123f61a64776eeccddbba8286f">&sect;&nbsp;</a></span>drawRoundedRectangle() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawRoundedRectangle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt;&#160;</td>
          <td class="paramname"><em>rectangle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>cornerSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>lineThickness</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Uses the current colour or brush to draw the outline of a rectangle with rounded corners. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a07adc8f0cde35b08bc3ac3ae037c32ba" title="Uses the current colour or brush to fill a rectangle with rounded corners. ">fillRoundedRectangle</a>, <a class="el" href="classPath.html#a501f83b0e323fe86d33c047f83451065" title="Adds a rectangle with rounded corners to the path. ">Path::addRoundedRectangle</a> </dd></dl>

</div>
</div>
<a id="ac1b8d714d7c85655bceb7d5597343554"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac1b8d714d7c85655bceb7d5597343554">&sect;&nbsp;</a></span>setPixel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::setPixel </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills a 1x1 pixel using the current colour or brush. </p>
<p>Note that because the context may be transformed, this is effectively the same as calling fillRect (x, y, 1, 1), and the actual result may involve multiple pixels. </p>

</div>
</div>
<a id="ae965bf1c5fadee50c665b6508eb3e8f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae965bf1c5fadee50c665b6508eb3e8f4">&sect;&nbsp;</a></span>fillEllipse() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::fillEllipse </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills an ellipse with the current colour or brush. </p>
<p>The ellipse is drawn to fit inside the given rectangle. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#ae4cce288a14b690ce0eb3dd514559887" title="Draws an elliptical stroke using the current colour or brush. ">drawEllipse</a>, <a class="el" href="classPath.html#a7514c5eaa928b64121490a7f0ce3088c" title="Adds an ellipse to the path. ">Path::addEllipse</a> </dd></dl>

</div>
</div>
<a id="acce4fac46893f6721d4cd5c9c15d8069"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acce4fac46893f6721d4cd5c9c15d8069">&sect;&nbsp;</a></span>fillEllipse() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::fillEllipse </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt;&#160;</td>
          <td class="paramname"><em>area</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills an ellipse with the current colour or brush. </p>
<p>The ellipse is drawn to fit inside the given rectangle. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#ae4cce288a14b690ce0eb3dd514559887" title="Draws an elliptical stroke using the current colour or brush. ">drawEllipse</a>, <a class="el" href="classPath.html#a7514c5eaa928b64121490a7f0ce3088c" title="Adds an ellipse to the path. ">Path::addEllipse</a> </dd></dl>

</div>
</div>
<a id="ae4cce288a14b690ce0eb3dd514559887"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4cce288a14b690ce0eb3dd514559887">&sect;&nbsp;</a></span>drawEllipse() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawEllipse </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>lineThickness</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws an elliptical stroke using the current colour or brush. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#ae965bf1c5fadee50c665b6508eb3e8f4" title="Fills an ellipse with the current colour or brush. ">fillEllipse</a>, <a class="el" href="classPath.html#a7514c5eaa928b64121490a7f0ce3088c" title="Adds an ellipse to the path. ">Path::addEllipse</a> </dd></dl>

</div>
</div>
<a id="a41a775f285e2ce2a5ace3ead44838702"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41a775f285e2ce2a5ace3ead44838702">&sect;&nbsp;</a></span>drawEllipse() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawEllipse </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt;&#160;</td>
          <td class="paramname"><em>area</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>lineThickness</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws an elliptical stroke using the current colour or brush. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#ae965bf1c5fadee50c665b6508eb3e8f4" title="Fills an ellipse with the current colour or brush. ">fillEllipse</a>, <a class="el" href="classPath.html#a7514c5eaa928b64121490a7f0ce3088c" title="Adds an ellipse to the path. ">Path::addEllipse</a> </dd></dl>

</div>
</div>
<a id="a95825b50a38aca2b2deeb1c2b183883c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95825b50a38aca2b2deeb1c2b183883c">&sect;&nbsp;</a></span>drawLine() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawLine </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>startX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>startY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>endX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>endY</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a line between two points. </p>
<p>The line is 1 pixel wide and drawn with the current colour or brush. TIP: If you're trying to draw horizontal or vertical lines, don't use this - it's better to use <a class="el" href="classGraphics.html#a747de9976729f72d9f6188104e6b2215" title="Fills a rectangle with the current colour or brush. ">fillRect()</a> instead unless you really need an angled line. </p>

</div>
</div>
<a id="abd067c0f7c09a27708bc258adbfd976e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd067c0f7c09a27708bc258adbfd976e">&sect;&nbsp;</a></span>drawLine() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawLine </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>startX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>startY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>endX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>endY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>lineThickness</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a line between two points with a given thickness. </p>
<p>TIP: If you're trying to draw horizontal or vertical lines, don't use this - it's better to use <a class="el" href="classGraphics.html#a747de9976729f72d9f6188104e6b2215" title="Fills a rectangle with the current colour or brush. ">fillRect()</a> instead unless you really need an angled line. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classPath.html#a93c4d70100bed1ea07518fea36267035" title="Adds a line with a specified thickness. ">Path::addLineSegment</a> </dd></dl>

</div>
</div>
<a id="a84e137df03789f9a6cfe80eecb3f792c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a84e137df03789f9a6cfe80eecb3f792c">&sect;&nbsp;</a></span>drawLine() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawLine </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classLine.html">Line</a>&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>line</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a line between two points. </p>
<p>The line is 1 pixel wide and drawn with the current colour or brush. TIP: If you're trying to draw horizontal or vertical lines, don't use this - it's better to use <a class="el" href="classGraphics.html#a747de9976729f72d9f6188104e6b2215" title="Fills a rectangle with the current colour or brush. ">fillRect()</a> instead unless you really need an angled line. </p>

</div>
</div>
<a id="a339e0c0a06984e463defa30998dc5bb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a339e0c0a06984e463defa30998dc5bb9">&sect;&nbsp;</a></span>drawLine() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawLine </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classLine.html">Line</a>&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>line</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>lineThickness</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a line between two points with a given thickness. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPath.html#a93c4d70100bed1ea07518fea36267035" title="Adds a line with a specified thickness. ">Path::addLineSegment</a> TIP: If you're trying to draw horizontal or vertical lines, don't use this - it's better to use <a class="el" href="classGraphics.html#a747de9976729f72d9f6188104e6b2215" title="Fills a rectangle with the current colour or brush. ">fillRect()</a> instead unless you really need an angled line. </dd></dl>

</div>
</div>
<a id="ad5e29da02dfafef5b2cff01cf2a71401"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5e29da02dfafef5b2cff01cf2a71401">&sect;&nbsp;</a></span>drawDashedLine()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawDashedLine </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classLine.html">Line</a>&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>line</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float *&#160;</td>
          <td class="paramname"><em>dashLengths</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numDashLengths</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>lineThickness</em> = <code>1.0f</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dashIndexToStartFrom</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a dashed line using a custom set of dash-lengths. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">line</td><td>the line to draw </td></tr>
    <tr><td class="paramname">dashLengths</td><td>a series of lengths to specify the on/off lengths - e.g. { 4, 5, 6, 7 } will draw a line of 4 pixels, skip 5 pixels, draw 6 pixels, skip 7 pixels, and then repeat. </td></tr>
    <tr><td class="paramname">numDashLengths</td><td>the number of elements in the array (this must be an even number). </td></tr>
    <tr><td class="paramname">lineThickness</td><td>the thickness of the line to draw </td></tr>
    <tr><td class="paramname">dashIndexToStartFrom</td><td>the index in the dash-length array to use for the first segment </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPathStrokeType.html#ab297ff70da0f10c66715d8f42cbc2d0b" title="Applies this stroke type to a path, creating a dashed line. ">PathStrokeType::createDashedStroke</a> </dd></dl>

</div>
</div>
<a id="a9e800a2aaa10b3dd0db9aa08a58b0923"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e800a2aaa10b3dd0db9aa08a58b0923">&sect;&nbsp;</a></span>drawVerticalLine()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawVerticalLine </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>top</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>bottom</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a vertical line of pixels at a given x position. </p>
<p>The x position is an integer, but the top and bottom of the line can be sub-pixel positions, and these will be anti-aliased if necessary.</p>
<p>The bottom parameter must be greater than or equal to the top parameter. </p>

</div>
</div>
<a id="a6625d72cb899b3d213c3bb7a91409ff2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6625d72cb899b3d213c3bb7a91409ff2">&sect;&nbsp;</a></span>drawHorizontalLine()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawHorizontalLine </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>right</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a horizontal line of pixels at a given y position. </p>
<p>The y position is an integer, but the left and right ends of the line can be sub-pixel positions, and these will be anti-aliased if necessary.</p>
<p>The right parameter must be greater than or equal to the left parameter. </p>

</div>
</div>
<a id="a6480d43f0df95f2cbb89367406b4c093"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6480d43f0df95f2cbb89367406b4c093">&sect;&nbsp;</a></span>fillPath() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::fillPath </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPath.html">Path</a> &amp;&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills a path using the currently selected colour or brush. </p>

</div>
</div>
<a id="a38de6fda0a7476a5d94a533d02eadeee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38de6fda0a7476a5d94a533d02eadeee">&sect;&nbsp;</a></span>fillPath() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::fillPath </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPath.html">Path</a> &amp;&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classAffineTransform.html">AffineTransform</a> &amp;&#160;</td>
          <td class="paramname"><em>transform</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills a path using the currently selected colour or brush, and adds a transform. </p>

</div>
</div>
<a id="aa5b231db22915f8b5b41f74db9459e88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5b231db22915f8b5b41f74db9459e88">&sect;&nbsp;</a></span>strokePath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::strokePath </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPath.html">Path</a> &amp;&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPathStrokeType.html">PathStrokeType</a> &amp;&#160;</td>
          <td class="paramname"><em>strokeType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classAffineTransform.html">AffineTransform</a> &amp;&#160;</td>
          <td class="paramname"><em>transform</em> = <code><a class="el" href="classAffineTransform.html">AffineTransform</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a path's outline using the currently selected colour or brush. </p>

</div>
</div>
<a id="a8415cbdf88bad182743f0d6a342cdff8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8415cbdf88bad182743f0d6a342cdff8">&sect;&nbsp;</a></span>drawArrow()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawArrow </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classLine.html">Line</a>&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>line</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>lineThickness</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>arrowheadWidth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>arrowheadLength</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws a line with an arrowhead at its end. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">line</td><td>the line to draw </td></tr>
    <tr><td class="paramname">lineThickness</td><td>the thickness of the line </td></tr>
    <tr><td class="paramname">arrowheadWidth</td><td>the width of the arrow head (perpendicular to the line) </td></tr>
    <tr><td class="paramname">arrowheadLength</td><td>the length of the arrow head (along the length of the line) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0f8160f9b0a6866e40cf1a2b45c3b892"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f8160f9b0a6866e40cf1a2b45c3b892">&sect;&nbsp;</a></span>setImageResamplingQuality()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::setImageResamplingQuality </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGraphics.html#a5da218e649d1b5ac3d67443ae77caf87">ResamplingQuality</a>&#160;</td>
          <td class="paramname"><em>newQuality</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Changes the quality that will be used when resampling images. </p>
<p>By default a <a class="el" href="classGraphics.html" title="A graphics context, used for drawing a component or image. ">Graphics</a> object will be set to mediumRenderingQuality. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a5afd17ef7993f8ec1e6ce4ecf721bbff" title="Draws part of an image, rescaling it to fit in a given target region. ">Graphics::drawImage</a>, <a class="el" href="classGraphics.html#aa738caa959cc0f067eaaebca956a7012" title="Draws an image, having applied an affine transform to it. ">Graphics::drawImageTransformed</a>, <a class="el" href="classGraphics.html#a0e6764c4892e710366369f579c40895b" title="Draws an image to fit within a designated rectangle. ">Graphics::drawImageWithin</a> </dd></dl>

</div>
</div>
<a id="a229be35e1ac1379530d5c9283932cd2b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a229be35e1ac1379530d5c9283932cd2b">&sect;&nbsp;</a></span>drawImageAt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawImageAt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classImage.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>imageToDraw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>topLeftX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>topLeftY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>fillAlphaChannelWithCurrentBrush</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws an image. </p>
<p>This will draw the whole of an image, positioning its top-left corner at the given coordinates, and keeping its size the same. This is the simplest image drawing method - the others give more control over the scaling and clipping of the images.</p>
<p>Images are composited using the context's current opacity, so if you don't want it to be drawn semi-transparently, be sure to call setOpacity (1.0f) (or <a class="el" href="classGraphics.html#a9a944a0006b7277fda473f0b1b4f028f" title="Changes the current drawing colour. ">setColour()</a> with an opaque colour) before drawing images. </p>

</div>
</div>
<a id="a5afd17ef7993f8ec1e6ce4ecf721bbff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5afd17ef7993f8ec1e6ce4ecf721bbff">&sect;&nbsp;</a></span>drawImage() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawImage </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classImage.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>imageToDraw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>destX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>destY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>destWidth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>destHeight</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>sourceX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>sourceY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>sourceWidth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>sourceHeight</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>fillAlphaChannelWithCurrentBrush</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws part of an image, rescaling it to fit in a given target region. </p>
<p>The specified area of the source image is rescaled and drawn to fill the specifed destination rectangle.</p>
<p>Images are composited using the context's current opacity, so if you don't want it to be drawn semi-transparently, be sure to call setOpacity (1.0f) (or <a class="el" href="classGraphics.html#a9a944a0006b7277fda473f0b1b4f028f" title="Changes the current drawing colour. ">setColour()</a> with an opaque colour) before drawing images.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">imageToDraw</td><td>the image to overlay </td></tr>
    <tr><td class="paramname">destX</td><td>the left of the destination rectangle </td></tr>
    <tr><td class="paramname">destY</td><td>the top of the destination rectangle </td></tr>
    <tr><td class="paramname">destWidth</td><td>the width of the destination rectangle </td></tr>
    <tr><td class="paramname">destHeight</td><td>the height of the destination rectangle </td></tr>
    <tr><td class="paramname">sourceX</td><td>the left of the rectangle to copy from the source image </td></tr>
    <tr><td class="paramname">sourceY</td><td>the top of the rectangle to copy from the source image </td></tr>
    <tr><td class="paramname">sourceWidth</td><td>the width of the rectangle to copy from the source image </td></tr>
    <tr><td class="paramname">sourceHeight</td><td>the height of the rectangle to copy from the source image </td></tr>
    <tr><td class="paramname">fillAlphaChannelWithCurrentBrush</td><td>if true, then instead of drawing the source image's pixels, the source image's alpha channel is used as a mask with which to fill the destination using the current colour or brush. (If the source is has no alpha channel, then it will just fill the target with a solid rectangle) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a0f8160f9b0a6866e40cf1a2b45c3b892" title="Changes the quality that will be used when resampling images. ">setImageResamplingQuality</a>, <a class="el" href="classGraphics.html#a229be35e1ac1379530d5c9283932cd2b" title="Draws an image. ">drawImageAt</a>, <a class="el" href="classGraphics.html#a0e6764c4892e710366369f579c40895b" title="Draws an image to fit within a designated rectangle. ">drawImageWithin</a>, fillAlphaMap </dd></dl>

</div>
</div>
<a id="aa738caa959cc0f067eaaebca956a7012"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa738caa959cc0f067eaaebca956a7012">&sect;&nbsp;</a></span>drawImageTransformed()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawImageTransformed </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classImage.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>imageToDraw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classAffineTransform.html">AffineTransform</a> &amp;&#160;</td>
          <td class="paramname"><em>transform</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>fillAlphaChannelWithCurrentBrush</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws an image, having applied an affine transform to it. </p>
<p>This lets you throw the image around in some wacky ways, rotate it, shear, scale it, etc.</p>
<p>Images are composited using the context's current opacity, so if you don't want it to be drawn semi-transparently, be sure to call setOpacity (1.0f) (or <a class="el" href="classGraphics.html#a9a944a0006b7277fda473f0b1b4f028f" title="Changes the current drawing colour. ">setColour()</a> with an opaque colour) before drawing images.</p>
<p>If fillAlphaChannelWithCurrentBrush is set to true, then the image's RGB channels are ignored and it is filled with the current brush, masked by its alpha channel.</p>
<p>If you want to render only a subsection of an image, use <a class="el" href="classImage.html#a0f1e8e0a7e0abf650911df14bbf7e701" title="Returns an image which refers to a subsection of this image. ">Image::getClippedImage()</a> to create the section that you need.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a0f8160f9b0a6866e40cf1a2b45c3b892" title="Changes the quality that will be used when resampling images. ">setImageResamplingQuality</a>, <a class="el" href="classGraphics.html#a5afd17ef7993f8ec1e6ce4ecf721bbff" title="Draws part of an image, rescaling it to fit in a given target region. ">drawImage</a> </dd></dl>

</div>
</div>
<a id="aacaf3a0b803211e9332de2070ead1fda"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aacaf3a0b803211e9332de2070ead1fda">&sect;&nbsp;</a></span>drawImage() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawImage </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classImage.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>imageToDraw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>&lt; float &gt;&#160;</td>
          <td class="paramname"><em>targetArea</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classRectanglePlacement.html">RectanglePlacement</a>&#160;</td>
          <td class="paramname"><em>placementWithinTarget</em> = <code><a class="el" href="classRectanglePlacement.html#afd5464553fd6bb41d697f3fc1d7427eda592b34ff9ad1d85db16f2e02c6252b8b">RectanglePlacement::stretchToFit</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>fillAlphaChannelWithCurrentBrush</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws an image to fit within a designated rectangle. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">imageToDraw</td><td>the source image to draw </td></tr>
    <tr><td class="paramname">targetArea</td><td>the target rectangle to fit it into </td></tr>
    <tr><td class="paramname">placementWithinTarget</td><td>this specifies how the image should be positioned within the target rectangle - see the <a class="el" href="classRectanglePlacement.html" title="Defines the method used to postion some kind of rectangular object within a rectangular viewport...">RectanglePlacement</a> class for more details about this. </td></tr>
    <tr><td class="paramname">fillAlphaChannelWithCurrentBrush</td><td>if true, then instead of drawing the image, just its alpha channel will be used as a mask with which to draw with the current brush or colour. This is similar to fillAlphaMap(), and see also <a class="el" href="classGraphics.html#a5afd17ef7993f8ec1e6ce4ecf721bbff" title="Draws part of an image, rescaling it to fit in a given target region. ">drawImage()</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a5afd17ef7993f8ec1e6ce4ecf721bbff" title="Draws part of an image, rescaling it to fit in a given target region. ">drawImage</a>, <a class="el" href="classGraphics.html#aa738caa959cc0f067eaaebca956a7012" title="Draws an image, having applied an affine transform to it. ">drawImageTransformed</a>, <a class="el" href="classGraphics.html#a229be35e1ac1379530d5c9283932cd2b" title="Draws an image. ">drawImageAt</a>, <a class="el" href="classRectanglePlacement.html" title="Defines the method used to postion some kind of rectangular object within a rectangular viewport...">RectanglePlacement</a> </dd></dl>

</div>
</div>
<a id="a0e6764c4892e710366369f579c40895b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e6764c4892e710366369f579c40895b">&sect;&nbsp;</a></span>drawImageWithin()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::drawImageWithin </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classImage.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>imageToDraw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>destX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>destY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>destWidth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>destHeight</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classRectanglePlacement.html">RectanglePlacement</a>&#160;</td>
          <td class="paramname"><em>placementWithinTarget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>fillAlphaChannelWithCurrentBrush</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Draws an image to fit within a designated rectangle. </p>
<p>If the image is too big or too small for the space, it will be rescaled to fit as nicely as it can do without affecting its aspect ratio. It will then be placed within the target rectangle according to the justification flags specified.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">imageToDraw</td><td>the source image to draw </td></tr>
    <tr><td class="paramname">destX</td><td>top-left of the target rectangle to fit it into </td></tr>
    <tr><td class="paramname">destY</td><td>top-left of the target rectangle to fit it into </td></tr>
    <tr><td class="paramname">destWidth</td><td>size of the target rectangle to fit the image into </td></tr>
    <tr><td class="paramname">destHeight</td><td>size of the target rectangle to fit the image into </td></tr>
    <tr><td class="paramname">placementWithinTarget</td><td>this specifies how the image should be positioned within the target rectangle - see the <a class="el" href="classRectanglePlacement.html" title="Defines the method used to postion some kind of rectangular object within a rectangular viewport...">RectanglePlacement</a> class for more details about this. </td></tr>
    <tr><td class="paramname">fillAlphaChannelWithCurrentBrush</td><td>if true, then instead of drawing the image, just its alpha channel will be used as a mask with which to draw with the current brush or colour. This is similar to fillAlphaMap(), and see also <a class="el" href="classGraphics.html#a5afd17ef7993f8ec1e6ce4ecf721bbff" title="Draws part of an image, rescaling it to fit in a given target region. ">drawImage()</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#a0f8160f9b0a6866e40cf1a2b45c3b892" title="Changes the quality that will be used when resampling images. ">setImageResamplingQuality</a>, <a class="el" href="classGraphics.html#a5afd17ef7993f8ec1e6ce4ecf721bbff" title="Draws part of an image, rescaling it to fit in a given target region. ">drawImage</a>, <a class="el" href="classGraphics.html#aa738caa959cc0f067eaaebca956a7012" title="Draws an image, having applied an affine transform to it. ">drawImageTransformed</a>, <a class="el" href="classGraphics.html#a229be35e1ac1379530d5c9283932cd2b" title="Draws an image. ">drawImageAt</a>, <a class="el" href="classRectanglePlacement.html" title="Defines the method used to postion some kind of rectangular object within a rectangular viewport...">RectanglePlacement</a> </dd></dl>

</div>
</div>
<a id="a93dde7e2eff1a2dc794eb90061afb3b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93dde7e2eff1a2dc794eb90061afb3b9">&sect;&nbsp;</a></span>getClipBounds()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classRectangle.html">Rectangle</a>&lt;int&gt; Graphics::getClipBounds </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the position of the bounding box for the current clipping region. </p>
<dl class="section see"><dt>See also</dt><dd>getClipRegion, <a class="el" href="classGraphics.html#a832d908be1ba929f623158529f667851" title="Checks whether a rectangle overlaps the context&#39;s clipping region. ">clipRegionIntersects</a> </dd></dl>

</div>
</div>
<a id="a832d908be1ba929f623158529f667851"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a832d908be1ba929f623158529f667851">&sect;&nbsp;</a></span>clipRegionIntersects()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Graphics::clipRegionIntersects </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt;&#160;</td>
          <td class="paramname"><em>area</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks whether a rectangle overlaps the context's clipping region. </p>
<p>If this returns false, no part of the given area can be drawn onto, so this method can be used to optimise a component's paint() method, by letting it avoid drawing complex objects that aren't within the region being repainted. </p>

</div>
</div>
<a id="ad97e058fcff2bc0e634eacc4ef1d7a5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad97e058fcff2bc0e634eacc4ef1d7a5f">&sect;&nbsp;</a></span>reduceClipRegion() <span class="overload">[1/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Graphics::reduceClipRegion </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Intersects the current clipping region with another region. </p>
<dl class="section return"><dt>Returns</dt><dd>true if the resulting clipping region is non-zero in size </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#aa9bb2542780177c4d8ace477241a83b6" title="Moves the position of the context&#39;s origin. ">setOrigin</a>, <a class="el" href="classGraphics.html#a832d908be1ba929f623158529f667851" title="Checks whether a rectangle overlaps the context&#39;s clipping region. ">clipRegionIntersects</a> </dd></dl>

</div>
</div>
<a id="aaa6ccd6208c16ea4cf569120bad1a64d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa6ccd6208c16ea4cf569120bad1a64d">&sect;&nbsp;</a></span>reduceClipRegion() <span class="overload">[2/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Graphics::reduceClipRegion </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt;&#160;</td>
          <td class="paramname"><em>area</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Intersects the current clipping region with another region. </p>
<dl class="section return"><dt>Returns</dt><dd>true if the resulting clipping region is non-zero in size </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#aa9bb2542780177c4d8ace477241a83b6" title="Moves the position of the context&#39;s origin. ">setOrigin</a>, <a class="el" href="classGraphics.html#a832d908be1ba929f623158529f667851" title="Checks whether a rectangle overlaps the context&#39;s clipping region. ">clipRegionIntersects</a> </dd></dl>

</div>
</div>
<a id="a2d2bde76da1377ab9a22df09f7aadbe7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d2bde76da1377ab9a22df09f7aadbe7">&sect;&nbsp;</a></span>reduceClipRegion() <span class="overload">[3/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Graphics::reduceClipRegion </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classRectangleList.html">RectangleList</a>&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>clipRegion</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Intersects the current clipping region with a rectangle list region. </p>
<dl class="section return"><dt>Returns</dt><dd>true if the resulting clipping region is non-zero in size </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#aa9bb2542780177c4d8ace477241a83b6" title="Moves the position of the context&#39;s origin. ">setOrigin</a>, <a class="el" href="classGraphics.html#a832d908be1ba929f623158529f667851" title="Checks whether a rectangle overlaps the context&#39;s clipping region. ">clipRegionIntersects</a> </dd></dl>

</div>
</div>
<a id="ab3718c74592ec0c1d0cb4e6fc5cec0f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3718c74592ec0c1d0cb4e6fc5cec0f6">&sect;&nbsp;</a></span>reduceClipRegion() <span class="overload">[4/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Graphics::reduceClipRegion </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPath.html">Path</a> &amp;&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classAffineTransform.html">AffineTransform</a> &amp;&#160;</td>
          <td class="paramname"><em>transform</em> = <code><a class="el" href="classAffineTransform.html">AffineTransform</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Intersects the current clipping region with a path. </p>
<dl class="section return"><dt>Returns</dt><dd>true if the resulting clipping region is non-zero in size </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#ad97e058fcff2bc0e634eacc4ef1d7a5f" title="Intersects the current clipping region with another region. ">reduceClipRegion</a> </dd></dl>

</div>
</div>
<a id="a735b5096ea063020134fdf1c570dec9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a735b5096ea063020134fdf1c570dec9a">&sect;&nbsp;</a></span>reduceClipRegion() <span class="overload">[5/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Graphics::reduceClipRegion </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classImage.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classAffineTransform.html">AffineTransform</a> &amp;&#160;</td>
          <td class="paramname"><em>transform</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Intersects the current clipping region with an image's alpha-channel. </p>
<p>The current clipping path is intersected with the area covered by this image's alpha-channel, after the image has been transformed by the specified matrix.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>the image whose alpha-channel should be used. If the image doesn't have an alpha-channel, it is treated as entirely opaque. </td></tr>
    <tr><td class="paramname">transform</td><td>a matrix to apply to the image </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the resulting clipping region is non-zero in size </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#ad97e058fcff2bc0e634eacc4ef1d7a5f" title="Intersects the current clipping region with another region. ">reduceClipRegion</a> </dd></dl>

</div>
</div>
<a id="a50949e3315daf0cb8c3c0abbdb272720"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50949e3315daf0cb8c3c0abbdb272720">&sect;&nbsp;</a></span>excludeClipRegion()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::excludeClipRegion </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classRectangle.html">Rectangle</a>&lt; int &gt;&#160;</td>
          <td class="paramname"><em>rectangleToExclude</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Excludes a rectangle to stop it being drawn into. </p>

</div>
</div>
<a id="a30ddcf1089e1644064a753ab862f7124"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30ddcf1089e1644064a753ab862f7124">&sect;&nbsp;</a></span>isClipEmpty()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Graphics::isClipEmpty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns true if no drawing can be done because the clip region is zero. </p>

</div>
</div>
<a id="ab4df35938684890f7adac0439e900ca8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4df35938684890f7adac0439e900ca8">&sect;&nbsp;</a></span>saveState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::saveState </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Saves the current graphics state on an internal stack. </p>
<p>To restore the state, use <a class="el" href="classGraphics.html#ac724e99c9a7bcd8b2987a484e269a368" title="Restores a graphics state that was previously saved with saveState(). ">restoreState()</a>. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics_1_1ScopedSaveState.html" title="Uses RAII to save and restore the state of a graphics context. ">ScopedSaveState</a> </dd></dl>

</div>
</div>
<a id="ac724e99c9a7bcd8b2987a484e269a368"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac724e99c9a7bcd8b2987a484e269a368">&sect;&nbsp;</a></span>restoreState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::restoreState </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Restores a graphics state that was previously saved with <a class="el" href="classGraphics.html#ab4df35938684890f7adac0439e900ca8" title="Saves the current graphics state on an internal stack. ">saveState()</a>. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics_1_1ScopedSaveState.html" title="Uses RAII to save and restore the state of a graphics context. ">ScopedSaveState</a> </dd></dl>

</div>
</div>
<a id="ab8d8ee1c6bb810074eff904fd3c21fc4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8d8ee1c6bb810074eff904fd3c21fc4">&sect;&nbsp;</a></span>beginTransparencyLayer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::beginTransparencyLayer </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>layerOpacity</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Begins rendering to an off-screen bitmap which will later be flattened onto the current context with the given opacity. </p>
<p>The context uses an internal stack of temporary image layers to do this. When you've finished drawing to the layer, call <a class="el" href="classGraphics.html#ae6b36ef8295dd83d33287a328e88ef9c" title="Completes a drawing operation to a temporary semi-transparent buffer. ">endTransparencyLayer()</a> to complete the operation and composite the finished layer. Every call to <a class="el" href="classGraphics.html#ab8d8ee1c6bb810074eff904fd3c21fc4" title="Begins rendering to an off-screen bitmap which will later be flattened onto the current context with ...">beginTransparencyLayer()</a> MUST be matched by a corresponding call to <a class="el" href="classGraphics.html#ae6b36ef8295dd83d33287a328e88ef9c" title="Completes a drawing operation to a temporary semi-transparent buffer. ">endTransparencyLayer()</a>!</p>
<p>This call also saves the current state, and <a class="el" href="classGraphics.html#ae6b36ef8295dd83d33287a328e88ef9c" title="Completes a drawing operation to a temporary semi-transparent buffer. ">endTransparencyLayer()</a> restores it. </p>

</div>
</div>
<a id="ae6b36ef8295dd83d33287a328e88ef9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6b36ef8295dd83d33287a328e88ef9c">&sect;&nbsp;</a></span>endTransparencyLayer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::endTransparencyLayer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Completes a drawing operation to a temporary semi-transparent buffer. </p>
<p>See <a class="el" href="classGraphics.html#ab8d8ee1c6bb810074eff904fd3c21fc4" title="Begins rendering to an off-screen bitmap which will later be flattened onto the current context with ...">beginTransparencyLayer()</a> for more details. </p>

</div>
</div>
<a id="aa9bb2542780177c4d8ace477241a83b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9bb2542780177c4d8ace477241a83b6">&sect;&nbsp;</a></span>setOrigin() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::setOrigin </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPoint.html">Point</a>&lt; int &gt;&#160;</td>
          <td class="paramname"><em>newOrigin</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Moves the position of the context's origin. </p>
<p>This changes the position that the context considers to be (0, 0) to the specified position.</p>
<p>So if you call setOrigin with (100, 100), then the position that was previously referred to as (100, 100) will subsequently be considered to be (0, 0).</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#ad97e058fcff2bc0e634eacc4ef1d7a5f" title="Intersects the current clipping region with another region. ">reduceClipRegion</a>, <a class="el" href="classGraphics.html#a7d9d400fdb96d3c6bbb640fb94b54d06" title="Adds a transformation which will be performed on all the graphics operations that the context subsequ...">addTransform</a> </dd></dl>

</div>
</div>
<a id="a9f6c05af33aefe49851d0d1eb9294bea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f6c05af33aefe49851d0d1eb9294bea">&sect;&nbsp;</a></span>setOrigin() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::setOrigin </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>newOriginX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>newOriginY</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Moves the position of the context's origin. </p>
<p>This changes the position that the context considers to be (0, 0) to the specified position.</p>
<p>So if you call setOrigin (100, 100), then the position that was previously referred to as (100, 100) will subsequently be considered to be (0, 0).</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#ad97e058fcff2bc0e634eacc4ef1d7a5f" title="Intersects the current clipping region with another region. ">reduceClipRegion</a>, <a class="el" href="classGraphics.html#a7d9d400fdb96d3c6bbb640fb94b54d06" title="Adds a transformation which will be performed on all the graphics operations that the context subsequ...">addTransform</a> </dd></dl>

</div>
</div>
<a id="a7d9d400fdb96d3c6bbb640fb94b54d06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d9d400fdb96d3c6bbb640fb94b54d06">&sect;&nbsp;</a></span>addTransform()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::addTransform </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classAffineTransform.html">AffineTransform</a> &amp;&#160;</td>
          <td class="paramname"><em>transform</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a transformation which will be performed on all the graphics operations that the context subsequently performs. </p>
<p>After calling this, all the coordinates that are passed into the context will be transformed by this matrix.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classGraphics.html#aa9bb2542780177c4d8ace477241a83b6" title="Moves the position of the context&#39;s origin. ">setOrigin</a> </dd></dl>

</div>
</div>
<a id="ab8b7cd49bf1ff738c5ff848727e3bc75"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8b7cd49bf1ff738c5ff848727e3bc75">&sect;&nbsp;</a></span>resetToDefaultState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Graphics::resetToDefaultState </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Resets the current colour, brush, and font to default settings. </p>

</div>
</div>
<a id="aada39363c0c5220a4073861ebc250f32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aada39363c0c5220a4073861ebc250f32">&sect;&nbsp;</a></span>isVectorDevice()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Graphics::isVectorDevice </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns true if this context is drawing to a vector-based device, such as a printer. </p>

</div>
</div>
<a id="a504995c303f45cce740dda9fa67f1a64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a504995c303f45cce740dda9fa67f1a64">&sect;&nbsp;</a></span>getInternalContext()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classLowLevelGraphicsContext.html">LowLevelGraphicsContext</a>&amp; Graphics::getInternalContext </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>References <a class="el" href="juce__PlatformDefs_8h.html#a851b02724a8158a7f746c66b5758b3dd">JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__GraphicsContext_8h.html">juce_GraphicsContext.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content &copy ROLI Ltd.</small></address><br/>
</body>
</html>