1*5e7646d2SAndroid Build Coastguard Worker<!DOCTYPE html> 2*5e7646d2SAndroid Build Coastguard Worker<html> 3*5e7646d2SAndroid Build Coastguard Worker<!-- SECTION: Programming --> 4*5e7646d2SAndroid Build Coastguard Worker <head> 5*5e7646d2SAndroid Build Coastguard Worker <title>Raster API</title> 6*5e7646d2SAndroid Build Coastguard Worker <meta name="keywords" content="Programming"> 7*5e7646d2SAndroid Build Coastguard Worker <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> 8*5e7646d2SAndroid Build Coastguard Worker <meta name="creator" content="codedoc v3.1"> 9*5e7646d2SAndroid Build Coastguard Worker <meta name="author" content="Unknown"> 10*5e7646d2SAndroid Build Coastguard Worker <meta name="copyright" content="Unknown"> 11*5e7646d2SAndroid Build Coastguard Worker <meta name="version" content="0.0"> 12*5e7646d2SAndroid Build Coastguard Worker <style type="text/css"><!-- 13*5e7646d2SAndroid Build Coastguard WorkerBODY { 14*5e7646d2SAndroid Build Coastguard Worker font-family: lucida grande, geneva, helvetica, arial, sans-serif; 15*5e7646d2SAndroid Build Coastguard Worker} 16*5e7646d2SAndroid Build Coastguard Worker 17*5e7646d2SAndroid Build Coastguard WorkerH1, H2, H3, H4, H5, H6, P, TD, TH { 18*5e7646d2SAndroid Build Coastguard Worker font-family: lucida grande, geneva, helvetica, arial, sans-serif; 19*5e7646d2SAndroid Build Coastguard Worker} 20*5e7646d2SAndroid Build Coastguard Worker 21*5e7646d2SAndroid Build Coastguard WorkerH1 { font-size: 2em; } 22*5e7646d2SAndroid Build Coastguard WorkerH2 { font-size: 1.75em; } 23*5e7646d2SAndroid Build Coastguard WorkerH3 { font-size: 1.5em; } 24*5e7646d2SAndroid Build Coastguard WorkerH4 { font-size: 1.25em; } 25*5e7646d2SAndroid Build Coastguard Worker 26*5e7646d2SAndroid Build Coastguard WorkerKBD { 27*5e7646d2SAndroid Build Coastguard Worker font-family: monaco, courier, monospace; 28*5e7646d2SAndroid Build Coastguard Worker font-weight: bold; 29*5e7646d2SAndroid Build Coastguard Worker} 30*5e7646d2SAndroid Build Coastguard Worker 31*5e7646d2SAndroid Build Coastguard WorkerPRE { 32*5e7646d2SAndroid Build Coastguard Worker font-family: monaco, courier, monospace; 33*5e7646d2SAndroid Build Coastguard Worker} 34*5e7646d2SAndroid Build Coastguard Worker 35*5e7646d2SAndroid Build Coastguard WorkerBLOCKQUOTE { 36*5e7646d2SAndroid Build Coastguard Worker border-left: solid 2px #777; 37*5e7646d2SAndroid Build Coastguard Worker margin: 1em 0; 38*5e7646d2SAndroid Build Coastguard Worker padding: 10px; 39*5e7646d2SAndroid Build Coastguard Worker} 40*5e7646d2SAndroid Build Coastguard Worker 41*5e7646d2SAndroid Build Coastguard WorkerBLOCKQUOTE OL LI { 42*5e7646d2SAndroid Build Coastguard Worker margin-left: -1em; 43*5e7646d2SAndroid Build Coastguard Worker} 44*5e7646d2SAndroid Build Coastguard Worker 45*5e7646d2SAndroid Build Coastguard WorkerPRE.command, PRE.example { 46*5e7646d2SAndroid Build Coastguard Worker background: #eee; 47*5e7646d2SAndroid Build Coastguard Worker margin: 0 36pt; 48*5e7646d2SAndroid Build Coastguard Worker padding: 10px; 49*5e7646d2SAndroid Build Coastguard Worker} 50*5e7646d2SAndroid Build Coastguard Worker 51*5e7646d2SAndroid Build Coastguard WorkerP.compact { 52*5e7646d2SAndroid Build Coastguard Worker margin: 0; 53*5e7646d2SAndroid Build Coastguard Worker} 54*5e7646d2SAndroid Build Coastguard Worker 55*5e7646d2SAndroid Build Coastguard WorkerP.example { 56*5e7646d2SAndroid Build Coastguard Worker font-style: italic; 57*5e7646d2SAndroid Build Coastguard Worker margin-left: 36pt; 58*5e7646d2SAndroid Build Coastguard Worker} 59*5e7646d2SAndroid Build Coastguard Worker 60*5e7646d2SAndroid Build Coastguard WorkerDL.man DD { 61*5e7646d2SAndroid Build Coastguard Worker margin-left: 5em; 62*5e7646d2SAndroid Build Coastguard Worker} 63*5e7646d2SAndroid Build Coastguard Worker 64*5e7646d2SAndroid Build Coastguard WorkerDL.man DT { 65*5e7646d2SAndroid Build Coastguard Worker margin-left: 0; 66*5e7646d2SAndroid Build Coastguard Worker} 67*5e7646d2SAndroid Build Coastguard Worker 68*5e7646d2SAndroid Build Coastguard WorkerPRE.man { 69*5e7646d2SAndroid Build Coastguard Worker margin: 0; 70*5e7646d2SAndroid Build Coastguard Worker} 71*5e7646d2SAndroid Build Coastguard Worker 72*5e7646d2SAndroid Build Coastguard WorkerPRE.command EM, PRE.example EM { 73*5e7646d2SAndroid Build Coastguard Worker font-family: lucida grande, geneva, helvetica, arial, sans-serif; 74*5e7646d2SAndroid Build Coastguard Worker} 75*5e7646d2SAndroid Build Coastguard Worker 76*5e7646d2SAndroid Build Coastguard WorkerP.command { 77*5e7646d2SAndroid Build Coastguard Worker font-family: monaco, courier, monospace; 78*5e7646d2SAndroid Build Coastguard Worker margin-left: 36pt; 79*5e7646d2SAndroid Build Coastguard Worker} 80*5e7646d2SAndroid Build Coastguard Worker 81*5e7646d2SAndroid Build Coastguard WorkerP.formula { 82*5e7646d2SAndroid Build Coastguard Worker font-style: italic; 83*5e7646d2SAndroid Build Coastguard Worker margin-left: 36pt; 84*5e7646d2SAndroid Build Coastguard Worker} 85*5e7646d2SAndroid Build Coastguard Worker 86*5e7646d2SAndroid Build Coastguard WorkerA IMG { 87*5e7646d2SAndroid Build Coastguard Worker border: none; 88*5e7646d2SAndroid Build Coastguard Worker} 89*5e7646d2SAndroid Build Coastguard Worker 90*5e7646d2SAndroid Build Coastguard WorkerA:link:hover IMG { 91*5e7646d2SAndroid Build Coastguard Worker background: #f0f0f0; 92*5e7646d2SAndroid Build Coastguard Worker border-radius: 10px; 93*5e7646d2SAndroid Build Coastguard Worker -moz-border-radius: 10px; 94*5e7646d2SAndroid Build Coastguard Worker} 95*5e7646d2SAndroid Build Coastguard Worker 96*5e7646d2SAndroid Build Coastguard WorkerA:link, A:visited { 97*5e7646d2SAndroid Build Coastguard Worker font-weight: inherit; 98*5e7646d2SAndroid Build Coastguard Worker text-decoration: none; 99*5e7646d2SAndroid Build Coastguard Worker} 100*5e7646d2SAndroid Build Coastguard Worker 101*5e7646d2SAndroid Build Coastguard WorkerA:link:hover, A:visited:hover, A:active { 102*5e7646d2SAndroid Build Coastguard Worker text-decoration: underline; 103*5e7646d2SAndroid Build Coastguard Worker} 104*5e7646d2SAndroid Build Coastguard Worker 105*5e7646d2SAndroid Build Coastguard WorkerSUB, SUP { 106*5e7646d2SAndroid Build Coastguard Worker font-size: 50%; 107*5e7646d2SAndroid Build Coastguard Worker} 108*5e7646d2SAndroid Build Coastguard Worker 109*5e7646d2SAndroid Build Coastguard WorkerTR.data, TD.data, TR.data TD { 110*5e7646d2SAndroid Build Coastguard Worker margin-top: 10pt; 111*5e7646d2SAndroid Build Coastguard Worker padding: 5pt; 112*5e7646d2SAndroid Build Coastguard Worker border-bottom: solid 1pt #999999; 113*5e7646d2SAndroid Build Coastguard Worker} 114*5e7646d2SAndroid Build Coastguard Worker 115*5e7646d2SAndroid Build Coastguard WorkerTR.data TH { 116*5e7646d2SAndroid Build Coastguard Worker border-bottom: solid 1pt #999999; 117*5e7646d2SAndroid Build Coastguard Worker padding-top: 10pt; 118*5e7646d2SAndroid Build Coastguard Worker padding-left: 5pt; 119*5e7646d2SAndroid Build Coastguard Worker text-align: left; 120*5e7646d2SAndroid Build Coastguard Worker} 121*5e7646d2SAndroid Build Coastguard Worker 122*5e7646d2SAndroid Build Coastguard WorkerDIV.table TABLE { 123*5e7646d2SAndroid Build Coastguard Worker border: solid thin #999999; 124*5e7646d2SAndroid Build Coastguard Worker border-collapse: collapse; 125*5e7646d2SAndroid Build Coastguard Worker border-spacing: 0; 126*5e7646d2SAndroid Build Coastguard Worker margin-left: auto; 127*5e7646d2SAndroid Build Coastguard Worker margin-right: auto; 128*5e7646d2SAndroid Build Coastguard Worker} 129*5e7646d2SAndroid Build Coastguard Worker 130*5e7646d2SAndroid Build Coastguard WorkerDIV.table CAPTION { 131*5e7646d2SAndroid Build Coastguard Worker caption-side: top; 132*5e7646d2SAndroid Build Coastguard Worker font-size: 120%; 133*5e7646d2SAndroid Build Coastguard Worker font-style: italic; 134*5e7646d2SAndroid Build Coastguard Worker font-weight: bold; 135*5e7646d2SAndroid Build Coastguard Worker margin-left: auto; 136*5e7646d2SAndroid Build Coastguard Worker margin-right: auto; 137*5e7646d2SAndroid Build Coastguard Worker} 138*5e7646d2SAndroid Build Coastguard Worker 139*5e7646d2SAndroid Build Coastguard WorkerDIV.table TABLE TD { 140*5e7646d2SAndroid Build Coastguard Worker border: solid thin #cccccc; 141*5e7646d2SAndroid Build Coastguard Worker padding: 5pt 10pt 0; 142*5e7646d2SAndroid Build Coastguard Worker} 143*5e7646d2SAndroid Build Coastguard Worker 144*5e7646d2SAndroid Build Coastguard WorkerDIV.table TABLE TH { 145*5e7646d2SAndroid Build Coastguard Worker background: #cccccc; 146*5e7646d2SAndroid Build Coastguard Worker border: none; 147*5e7646d2SAndroid Build Coastguard Worker border-bottom: solid thin #999999; 148*5e7646d2SAndroid Build Coastguard Worker} 149*5e7646d2SAndroid Build Coastguard Worker 150*5e7646d2SAndroid Build Coastguard WorkerDIV.figure TABLE { 151*5e7646d2SAndroid Build Coastguard Worker margin-left: auto; 152*5e7646d2SAndroid Build Coastguard Worker margin-right: auto; 153*5e7646d2SAndroid Build Coastguard Worker} 154*5e7646d2SAndroid Build Coastguard Worker 155*5e7646d2SAndroid Build Coastguard WorkerDIV.figure CAPTION { 156*5e7646d2SAndroid Build Coastguard Worker caption-side: bottom; 157*5e7646d2SAndroid Build Coastguard Worker font-size: 120%; 158*5e7646d2SAndroid Build Coastguard Worker font-style: italic; 159*5e7646d2SAndroid Build Coastguard Worker font-weight: bold; 160*5e7646d2SAndroid Build Coastguard Worker margin-left: auto; 161*5e7646d2SAndroid Build Coastguard Worker margin-right: auto; 162*5e7646d2SAndroid Build Coastguard Worker} 163*5e7646d2SAndroid Build Coastguard Worker 164*5e7646d2SAndroid Build Coastguard WorkerTH.label { 165*5e7646d2SAndroid Build Coastguard Worker text-align: right; 166*5e7646d2SAndroid Build Coastguard Worker vertical-align: top; 167*5e7646d2SAndroid Build Coastguard Worker} 168*5e7646d2SAndroid Build Coastguard Worker 169*5e7646d2SAndroid Build Coastguard WorkerTH.sublabel { 170*5e7646d2SAndroid Build Coastguard Worker text-align: right; 171*5e7646d2SAndroid Build Coastguard Worker font-weight: normal; 172*5e7646d2SAndroid Build Coastguard Worker} 173*5e7646d2SAndroid Build Coastguard Worker 174*5e7646d2SAndroid Build Coastguard WorkerHR { 175*5e7646d2SAndroid Build Coastguard Worker border: solid thin; 176*5e7646d2SAndroid Build Coastguard Worker} 177*5e7646d2SAndroid Build Coastguard Worker 178*5e7646d2SAndroid Build Coastguard WorkerSPAN.info { 179*5e7646d2SAndroid Build Coastguard Worker background: black; 180*5e7646d2SAndroid Build Coastguard Worker border: thin solid black; 181*5e7646d2SAndroid Build Coastguard Worker color: white; 182*5e7646d2SAndroid Build Coastguard Worker font-size: 80%; 183*5e7646d2SAndroid Build Coastguard Worker font-style: italic; 184*5e7646d2SAndroid Build Coastguard Worker font-weight: bold; 185*5e7646d2SAndroid Build Coastguard Worker white-space: nowrap; 186*5e7646d2SAndroid Build Coastguard Worker} 187*5e7646d2SAndroid Build Coastguard Worker 188*5e7646d2SAndroid Build Coastguard WorkerH2 SPAN.info, H3 SPAN.info, H4 SPAN.info { 189*5e7646d2SAndroid Build Coastguard Worker float: right; 190*5e7646d2SAndroid Build Coastguard Worker font-size: 100%; 191*5e7646d2SAndroid Build Coastguard Worker} 192*5e7646d2SAndroid Build Coastguard Worker 193*5e7646d2SAndroid Build Coastguard WorkerH1.title { 194*5e7646d2SAndroid Build Coastguard Worker} 195*5e7646d2SAndroid Build Coastguard Worker 196*5e7646d2SAndroid Build Coastguard WorkerH2.title, H3.title { 197*5e7646d2SAndroid Build Coastguard Worker border-bottom: solid 2pt #000000; 198*5e7646d2SAndroid Build Coastguard Worker} 199*5e7646d2SAndroid Build Coastguard Worker 200*5e7646d2SAndroid Build Coastguard WorkerDIV.indent, TABLE.indent { 201*5e7646d2SAndroid Build Coastguard Worker margin-top: 2em; 202*5e7646d2SAndroid Build Coastguard Worker margin-left: auto; 203*5e7646d2SAndroid Build Coastguard Worker margin-right: auto; 204*5e7646d2SAndroid Build Coastguard Worker width: 90%; 205*5e7646d2SAndroid Build Coastguard Worker} 206*5e7646d2SAndroid Build Coastguard Worker 207*5e7646d2SAndroid Build Coastguard WorkerTABLE.indent { 208*5e7646d2SAndroid Build Coastguard Worker border-collapse: collapse; 209*5e7646d2SAndroid Build Coastguard Worker} 210*5e7646d2SAndroid Build Coastguard Worker 211*5e7646d2SAndroid Build Coastguard WorkerTABLE.indent TD, TABLE.indent TH { 212*5e7646d2SAndroid Build Coastguard Worker padding: 0; 213*5e7646d2SAndroid Build Coastguard Worker} 214*5e7646d2SAndroid Build Coastguard Worker 215*5e7646d2SAndroid Build Coastguard WorkerTABLE.list { 216*5e7646d2SAndroid Build Coastguard Worker border-collapse: collapse; 217*5e7646d2SAndroid Build Coastguard Worker margin-left: auto; 218*5e7646d2SAndroid Build Coastguard Worker margin-right: auto; 219*5e7646d2SAndroid Build Coastguard Worker width: 90%; 220*5e7646d2SAndroid Build Coastguard Worker} 221*5e7646d2SAndroid Build Coastguard Worker 222*5e7646d2SAndroid Build Coastguard WorkerTABLE.list TH { 223*5e7646d2SAndroid Build Coastguard Worker background: white; 224*5e7646d2SAndroid Build Coastguard Worker border-bottom: solid thin #cccccc; 225*5e7646d2SAndroid Build Coastguard Worker color: #444444; 226*5e7646d2SAndroid Build Coastguard Worker padding-top: 10pt; 227*5e7646d2SAndroid Build Coastguard Worker padding-left: 5pt; 228*5e7646d2SAndroid Build Coastguard Worker text-align: left; 229*5e7646d2SAndroid Build Coastguard Worker vertical-align: bottom; 230*5e7646d2SAndroid Build Coastguard Worker white-space: nowrap; 231*5e7646d2SAndroid Build Coastguard Worker} 232*5e7646d2SAndroid Build Coastguard Worker 233*5e7646d2SAndroid Build Coastguard WorkerTABLE.list TH A { 234*5e7646d2SAndroid Build Coastguard Worker color: #4444cc; 235*5e7646d2SAndroid Build Coastguard Worker} 236*5e7646d2SAndroid Build Coastguard Worker 237*5e7646d2SAndroid Build Coastguard WorkerTABLE.list TD { 238*5e7646d2SAndroid Build Coastguard Worker border-bottom: solid thin #eeeeee; 239*5e7646d2SAndroid Build Coastguard Worker padding-top: 5pt; 240*5e7646d2SAndroid Build Coastguard Worker padding-left: 5pt; 241*5e7646d2SAndroid Build Coastguard Worker} 242*5e7646d2SAndroid Build Coastguard Worker 243*5e7646d2SAndroid Build Coastguard WorkerTABLE.list TR:nth-child(even) { 244*5e7646d2SAndroid Build Coastguard Worker background: #f8f8f8; 245*5e7646d2SAndroid Build Coastguard Worker} 246*5e7646d2SAndroid Build Coastguard Worker 247*5e7646d2SAndroid Build Coastguard WorkerTABLE.list TR:nth-child(odd) { 248*5e7646d2SAndroid Build Coastguard Worker background: #f4f4f4; 249*5e7646d2SAndroid Build Coastguard Worker} 250*5e7646d2SAndroid Build Coastguard Worker 251*5e7646d2SAndroid Build Coastguard WorkerDT { 252*5e7646d2SAndroid Build Coastguard Worker margin-left: 36pt; 253*5e7646d2SAndroid Build Coastguard Worker margin-top: 12pt; 254*5e7646d2SAndroid Build Coastguard Worker} 255*5e7646d2SAndroid Build Coastguard Worker 256*5e7646d2SAndroid Build Coastguard WorkerDD { 257*5e7646d2SAndroid Build Coastguard Worker margin-left: 54pt; 258*5e7646d2SAndroid Build Coastguard Worker} 259*5e7646d2SAndroid Build Coastguard Worker 260*5e7646d2SAndroid Build Coastguard WorkerDL.category DT { 261*5e7646d2SAndroid Build Coastguard Worker font-weight: bold; 262*5e7646d2SAndroid Build Coastguard Worker} 263*5e7646d2SAndroid Build Coastguard Worker 264*5e7646d2SAndroid Build Coastguard WorkerP.summary { 265*5e7646d2SAndroid Build Coastguard Worker margin-left: 36pt; 266*5e7646d2SAndroid Build Coastguard Worker font-family: monaco, courier, monospace; 267*5e7646d2SAndroid Build Coastguard Worker} 268*5e7646d2SAndroid Build Coastguard Worker 269*5e7646d2SAndroid Build Coastguard WorkerDIV.summary TABLE { 270*5e7646d2SAndroid Build Coastguard Worker border: solid thin #999999; 271*5e7646d2SAndroid Build Coastguard Worker border-collapse: collapse; 272*5e7646d2SAndroid Build Coastguard Worker border-spacing: 0; 273*5e7646d2SAndroid Build Coastguard Worker margin: 10px; 274*5e7646d2SAndroid Build Coastguard Worker} 275*5e7646d2SAndroid Build Coastguard Worker 276*5e7646d2SAndroid Build Coastguard WorkerDIV.summary TABLE TD, DIV.summary TABLE TH { 277*5e7646d2SAndroid Build Coastguard Worker border: solid thin #999999; 278*5e7646d2SAndroid Build Coastguard Worker padding: 5px; 279*5e7646d2SAndroid Build Coastguard Worker text-align: left; 280*5e7646d2SAndroid Build Coastguard Worker vertical-align: top; 281*5e7646d2SAndroid Build Coastguard Worker} 282*5e7646d2SAndroid Build Coastguard Worker 283*5e7646d2SAndroid Build Coastguard WorkerDIV.summary TABLE THEAD TH { 284*5e7646d2SAndroid Build Coastguard Worker background: #eeeeee; 285*5e7646d2SAndroid Build Coastguard Worker} 286*5e7646d2SAndroid Build Coastguard Worker 287*5e7646d2SAndroid Build Coastguard Worker/* API documentation styles... */ 288*5e7646d2SAndroid Build Coastguard Workerdiv.body h1 { 289*5e7646d2SAndroid Build Coastguard Worker font-size: 250%; 290*5e7646d2SAndroid Build Coastguard Worker font-weight: bold; 291*5e7646d2SAndroid Build Coastguard Worker margin: 0; 292*5e7646d2SAndroid Build Coastguard Worker} 293*5e7646d2SAndroid Build Coastguard Workerdiv.body h2 { 294*5e7646d2SAndroid Build Coastguard Worker font-size: 250%; 295*5e7646d2SAndroid Build Coastguard Worker margin-top: 1.5em; 296*5e7646d2SAndroid Build Coastguard Worker} 297*5e7646d2SAndroid Build Coastguard Workerdiv.body h3 { 298*5e7646d2SAndroid Build Coastguard Worker font-size: 150%; 299*5e7646d2SAndroid Build Coastguard Worker margin-bottom: 0.5em; 300*5e7646d2SAndroid Build Coastguard Worker margin-top: 1.5em; 301*5e7646d2SAndroid Build Coastguard Worker} 302*5e7646d2SAndroid Build Coastguard Workerdiv.body h4 { 303*5e7646d2SAndroid Build Coastguard Worker font-size: 110%; 304*5e7646d2SAndroid Build Coastguard Worker margin-bottom: 0.5em; 305*5e7646d2SAndroid Build Coastguard Worker margin-top: 1.5em; 306*5e7646d2SAndroid Build Coastguard Worker} 307*5e7646d2SAndroid Build Coastguard Workerdiv.body h5 { 308*5e7646d2SAndroid Build Coastguard Worker font-size: 100%; 309*5e7646d2SAndroid Build Coastguard Worker margin-bottom: 0.5em; 310*5e7646d2SAndroid Build Coastguard Worker margin-top: 1.5em; 311*5e7646d2SAndroid Build Coastguard Worker} 312*5e7646d2SAndroid Build Coastguard Workerdiv.contents { 313*5e7646d2SAndroid Build Coastguard Worker background: #e8e8e8; 314*5e7646d2SAndroid Build Coastguard Worker border: solid thin black; 315*5e7646d2SAndroid Build Coastguard Worker padding: 10px; 316*5e7646d2SAndroid Build Coastguard Worker} 317*5e7646d2SAndroid Build Coastguard Workerdiv.contents h1 { 318*5e7646d2SAndroid Build Coastguard Worker font-size: 110%; 319*5e7646d2SAndroid Build Coastguard Worker} 320*5e7646d2SAndroid Build Coastguard Workerdiv.contents h2 { 321*5e7646d2SAndroid Build Coastguard Worker font-size: 100%; 322*5e7646d2SAndroid Build Coastguard Worker} 323*5e7646d2SAndroid Build Coastguard Workerdiv.contents ul.contents { 324*5e7646d2SAndroid Build Coastguard Worker font-size: 80%; 325*5e7646d2SAndroid Build Coastguard Worker} 326*5e7646d2SAndroid Build Coastguard Worker.class { 327*5e7646d2SAndroid Build Coastguard Worker border-bottom: solid 2px gray; 328*5e7646d2SAndroid Build Coastguard Worker} 329*5e7646d2SAndroid Build Coastguard Worker.constants { 330*5e7646d2SAndroid Build Coastguard Worker} 331*5e7646d2SAndroid Build Coastguard Worker.description { 332*5e7646d2SAndroid Build Coastguard Worker margin-top: 0.5em; 333*5e7646d2SAndroid Build Coastguard Worker} 334*5e7646d2SAndroid Build Coastguard Worker.discussion { 335*5e7646d2SAndroid Build Coastguard Worker} 336*5e7646d2SAndroid Build Coastguard Worker.enumeration { 337*5e7646d2SAndroid Build Coastguard Worker border-bottom: solid 2px gray; 338*5e7646d2SAndroid Build Coastguard Worker} 339*5e7646d2SAndroid Build Coastguard Worker.function { 340*5e7646d2SAndroid Build Coastguard Worker border-bottom: solid 2px gray; 341*5e7646d2SAndroid Build Coastguard Worker margin-bottom: 0; 342*5e7646d2SAndroid Build Coastguard Worker} 343*5e7646d2SAndroid Build Coastguard Worker.members { 344*5e7646d2SAndroid Build Coastguard Worker} 345*5e7646d2SAndroid Build Coastguard Worker.method { 346*5e7646d2SAndroid Build Coastguard Worker} 347*5e7646d2SAndroid Build Coastguard Worker.parameters { 348*5e7646d2SAndroid Build Coastguard Worker} 349*5e7646d2SAndroid Build Coastguard Worker.returnvalue { 350*5e7646d2SAndroid Build Coastguard Worker} 351*5e7646d2SAndroid Build Coastguard Worker.struct { 352*5e7646d2SAndroid Build Coastguard Worker border-bottom: solid 2px gray; 353*5e7646d2SAndroid Build Coastguard Worker} 354*5e7646d2SAndroid Build Coastguard Worker.typedef { 355*5e7646d2SAndroid Build Coastguard Worker border-bottom: solid 2px gray; 356*5e7646d2SAndroid Build Coastguard Worker} 357*5e7646d2SAndroid Build Coastguard Worker.union { 358*5e7646d2SAndroid Build Coastguard Worker border-bottom: solid 2px gray; 359*5e7646d2SAndroid Build Coastguard Worker} 360*5e7646d2SAndroid Build Coastguard Worker.variable { 361*5e7646d2SAndroid Build Coastguard Worker} 362*5e7646d2SAndroid Build Coastguard Workerh1, h2, h3, h4, h5, h6 { 363*5e7646d2SAndroid Build Coastguard Worker page-break-inside: avoid; 364*5e7646d2SAndroid Build Coastguard Worker} 365*5e7646d2SAndroid Build Coastguard Workerblockquote { 366*5e7646d2SAndroid Build Coastguard Worker border: solid thin gray; 367*5e7646d2SAndroid Build Coastguard Worker box-shadow: 3px 3px 5px rgba(0,0,0,0.5); 368*5e7646d2SAndroid Build Coastguard Worker padding: 10px 10px 0px; 369*5e7646d2SAndroid Build Coastguard Worker page-break-inside: avoid; 370*5e7646d2SAndroid Build Coastguard Worker} 371*5e7646d2SAndroid Build Coastguard Workerp code, li code, p.code, pre, ul.code li { 372*5e7646d2SAndroid Build Coastguard Worker background: rgba(127,127,127,0.1); 373*5e7646d2SAndroid Build Coastguard Worker border: thin dotted gray; 374*5e7646d2SAndroid Build Coastguard Worker font-family: monospace; 375*5e7646d2SAndroid Build Coastguard Worker hyphens: manual; 376*5e7646d2SAndroid Build Coastguard Worker -webkit-hyphens: manual; 377*5e7646d2SAndroid Build Coastguard Worker page-break-inside: avoid; 378*5e7646d2SAndroid Build Coastguard Worker} 379*5e7646d2SAndroid Build Coastguard Workerp.code, pre, ul.code li { 380*5e7646d2SAndroid Build Coastguard Worker padding: 10px; 381*5e7646d2SAndroid Build Coastguard Worker} 382*5e7646d2SAndroid Build Coastguard Workerp code, li code { 383*5e7646d2SAndroid Build Coastguard Worker padding: 2px 5px; 384*5e7646d2SAndroid Build Coastguard Worker} 385*5e7646d2SAndroid Build Coastguard Workera:link, a:visited { 386*5e7646d2SAndroid Build Coastguard Worker text-decoration: none; 387*5e7646d2SAndroid Build Coastguard Worker} 388*5e7646d2SAndroid Build Coastguard Workerspan.info { 389*5e7646d2SAndroid Build Coastguard Worker background: black; 390*5e7646d2SAndroid Build Coastguard Worker border: solid thin black; 391*5e7646d2SAndroid Build Coastguard Worker color: white; 392*5e7646d2SAndroid Build Coastguard Worker font-size: 80%; 393*5e7646d2SAndroid Build Coastguard Worker font-style: italic; 394*5e7646d2SAndroid Build Coastguard Worker font-weight: bold; 395*5e7646d2SAndroid Build Coastguard Worker white-space: nowrap; 396*5e7646d2SAndroid Build Coastguard Worker} 397*5e7646d2SAndroid Build Coastguard Workerh2 span.info, h3 span.info, h4 span.info { 398*5e7646d2SAndroid Build Coastguard Worker border-radius: 10px; 399*5e7646d2SAndroid Build Coastguard Worker float: right; 400*5e7646d2SAndroid Build Coastguard Worker font-size: 80%; 401*5e7646d2SAndroid Build Coastguard Worker padding: 3px 6px; 402*5e7646d2SAndroid Build Coastguard Worker} 403*5e7646d2SAndroid Build Coastguard Workerh2.title span.info, h3.title span.info, h4.title span.info { 404*5e7646d2SAndroid Build Coastguard Worker border-bottom-left-radius: 0px; 405*5e7646d2SAndroid Build Coastguard Worker border-bottom-right-radius: 0px; 406*5e7646d2SAndroid Build Coastguard Worker} 407*5e7646d2SAndroid Build Coastguard Workerh2.title span.info { 408*5e7646d2SAndroid Build Coastguard Worker padding: 4px 6px; 409*5e7646d2SAndroid Build Coastguard Worker} 410*5e7646d2SAndroid Build Coastguard Workerul.code, ul.contents, ul.subcontents { 411*5e7646d2SAndroid Build Coastguard Worker list-style-type: none; 412*5e7646d2SAndroid Build Coastguard Worker margin: 0; 413*5e7646d2SAndroid Build Coastguard Worker padding-left: 0; 414*5e7646d2SAndroid Build Coastguard Worker} 415*5e7646d2SAndroid Build Coastguard Workerul.code li { 416*5e7646d2SAndroid Build Coastguard Worker margin: 0; 417*5e7646d2SAndroid Build Coastguard Worker} 418*5e7646d2SAndroid Build Coastguard Workerul.contents > li { 419*5e7646d2SAndroid Build Coastguard Worker margin-top: 1em; 420*5e7646d2SAndroid Build Coastguard Worker} 421*5e7646d2SAndroid Build Coastguard Workerul.contents li ul.code, ul.contents li ul.subcontents { 422*5e7646d2SAndroid Build Coastguard Worker padding-left: 2em; 423*5e7646d2SAndroid Build Coastguard Worker} 424*5e7646d2SAndroid Build Coastguard Workertable.list { 425*5e7646d2SAndroid Build Coastguard Worker border-collapse: collapse; 426*5e7646d2SAndroid Build Coastguard Worker width: 100%; 427*5e7646d2SAndroid Build Coastguard Worker} 428*5e7646d2SAndroid Build Coastguard Workertable.list tr:nth-child(even) { 429*5e7646d2SAndroid Build Coastguard Worker background: rgba(127,127,127,0.1);]n} 430*5e7646d2SAndroid Build Coastguard Workertable.list th { 431*5e7646d2SAndroid Build Coastguard Worker border-right: 2px solid gray; 432*5e7646d2SAndroid Build Coastguard Worker font-family: monospace; 433*5e7646d2SAndroid Build Coastguard Worker padding: 5px 10px 5px 2px; 434*5e7646d2SAndroid Build Coastguard Worker text-align: right; 435*5e7646d2SAndroid Build Coastguard Worker vertical-align: top; 436*5e7646d2SAndroid Build Coastguard Worker} 437*5e7646d2SAndroid Build Coastguard Workertable.list td { 438*5e7646d2SAndroid Build Coastguard Worker padding: 5px 2px 5px 10px; 439*5e7646d2SAndroid Build Coastguard Worker text-align: left; 440*5e7646d2SAndroid Build Coastguard Worker vertical-align: top; 441*5e7646d2SAndroid Build Coastguard Worker} 442*5e7646d2SAndroid Build Coastguard Workerh1.title { 443*5e7646d2SAndroid Build Coastguard Worker} 444*5e7646d2SAndroid Build Coastguard Workerh2.title { 445*5e7646d2SAndroid Build Coastguard Worker border-bottom: solid 2px black; 446*5e7646d2SAndroid Build Coastguard Worker} 447*5e7646d2SAndroid Build Coastguard Workerh3.title { 448*5e7646d2SAndroid Build Coastguard Worker border-bottom: solid 2px black; 449*5e7646d2SAndroid Build Coastguard Worker} 450*5e7646d2SAndroid Build Coastguard Worker--></style> 451*5e7646d2SAndroid Build Coastguard Worker </head> 452*5e7646d2SAndroid Build Coastguard Worker <body> 453*5e7646d2SAndroid Build Coastguard Worker<!-- 454*5e7646d2SAndroid Build Coastguard Worker Raster API documentation for CUPS. 455*5e7646d2SAndroid Build Coastguard Worker 456*5e7646d2SAndroid Build Coastguard Worker Copyright © 2008-2019 by Apple Inc. 457*5e7646d2SAndroid Build Coastguard Worker 458*5e7646d2SAndroid Build Coastguard Worker Licensed under Apache License v2.0. See the file "LICENSE" for more 459*5e7646d2SAndroid Build Coastguard Worker information. 460*5e7646d2SAndroid Build Coastguard Worker--> 461*5e7646d2SAndroid Build Coastguard Worker 462*5e7646d2SAndroid Build Coastguard Worker<h1 class='title'>Raster API</h1> 463*5e7646d2SAndroid Build Coastguard Worker 464*5e7646d2SAndroid Build Coastguard Worker<div class='summary'><table summary='General Information'> 465*5e7646d2SAndroid Build Coastguard Worker<thead> 466*5e7646d2SAndroid Build Coastguard Worker<tr> 467*5e7646d2SAndroid Build Coastguard Worker <th>Header</th> 468*5e7646d2SAndroid Build Coastguard Worker <th>cups/raster.h</th> 469*5e7646d2SAndroid Build Coastguard Worker</tr> 470*5e7646d2SAndroid Build Coastguard Worker</thead> 471*5e7646d2SAndroid Build Coastguard Worker<tbody> 472*5e7646d2SAndroid Build Coastguard Worker<tr> 473*5e7646d2SAndroid Build Coastguard Worker <th>Library</th> 474*5e7646d2SAndroid Build Coastguard Worker <td>-lcups</td> 475*5e7646d2SAndroid Build Coastguard Worker</tr> 476*5e7646d2SAndroid Build Coastguard Worker<tr> 477*5e7646d2SAndroid Build Coastguard Worker <th>See Also</th> 478*5e7646d2SAndroid Build Coastguard Worker <td>Programming: <a href='cupspm.html'>CUPS Programming Manual</a><br> 479*5e7646d2SAndroid Build Coastguard Worker Programming: <a href='api-ppd.html'>PPD API</a><br> 480*5e7646d2SAndroid Build Coastguard Worker References: <a href='spec-ppd.html'>CUPS PPD Specification</a></td> 481*5e7646d2SAndroid Build Coastguard Worker</tr> 482*5e7646d2SAndroid Build Coastguard Worker</tbody> 483*5e7646d2SAndroid Build Coastguard Worker</table></div> 484*5e7646d2SAndroid Build Coastguard Worker <div class="contents"> 485*5e7646d2SAndroid Build Coastguard Worker <h2 class="title">Contents</h2> 486*5e7646d2SAndroid Build Coastguard Worker <ul class="contents"> 487*5e7646d2SAndroid Build Coastguard Worker <li><a href="#OVERVIEW">Overview</a></li> 488*5e7646d2SAndroid Build Coastguard Worker <li><a href="#TASKS">Functions by Task</a><ul class="subcontents"> 489*5e7646d2SAndroid Build Coastguard Worker <li><a href="#OPENCLOSE">Opening and Closing Raster Streams</a></li> 490*5e7646d2SAndroid Build Coastguard Worker <li><a href="#READING">Reading Raster Streams</a></li> 491*5e7646d2SAndroid Build Coastguard Worker <li><a href="#WRITING">Writing Raster Streams</a></li> 492*5e7646d2SAndroid Build Coastguard Worker </ul></li> 493*5e7646d2SAndroid Build Coastguard Worker <li><a href="#FUNCTIONS">Functions</a><ul class="subcontents"> 494*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterClose">cupsRasterClose</a></li> 495*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterErrorString">cupsRasterErrorString</a></li> 496*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterInitPWGHeader">cupsRasterInitPWGHeader</a></li> 497*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterOpen">cupsRasterOpen</a></li> 498*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterOpenIO">cupsRasterOpenIO</a></li> 499*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterReadHeader">cupsRasterReadHeader</a></li> 500*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterReadHeader2">cupsRasterReadHeader2</a></li> 501*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterReadPixels">cupsRasterReadPixels</a></li> 502*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterWriteHeader">cupsRasterWriteHeader</a></li> 503*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterWriteHeader2">cupsRasterWriteHeader2</a></li> 504*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterWritePixels">cupsRasterWritePixels</a></li> 505*5e7646d2SAndroid Build Coastguard Worker </ul></li> 506*5e7646d2SAndroid Build Coastguard Worker <li><a href="#TYPES">Data Types</a><ul class="subcontents"> 507*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_adv_t">cups_adv_t</a></li> 508*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_bool_t">cups_bool_t</a></li> 509*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_cspace_t">cups_cspace_t</a></li> 510*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_cut_t">cups_cut_t</a></li> 511*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_edge_t">cups_edge_t</a></li> 512*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_jog_t">cups_jog_t</a></li> 513*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_mode_t">cups_mode_t</a></li> 514*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_order_t">cups_order_t</a></li> 515*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_orient_t">cups_orient_t</a></li> 516*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_page_header2_t">cups_page_header2_t</a></li> 517*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_page_header_t">cups_page_header_t</a></li> 518*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_raster_iocb_t">cups_raster_iocb_t</a></li> 519*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_raster_t">cups_raster_t</a></li> 520*5e7646d2SAndroid Build Coastguard Worker </ul></li> 521*5e7646d2SAndroid Build Coastguard Worker <li><a href="#STRUCTURES">Structures</a><ul class="subcontents"> 522*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_page_header2_s">cups_page_header2_s</a></li> 523*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_page_header_s">cups_page_header_s</a></li> 524*5e7646d2SAndroid Build Coastguard Worker </ul></li> 525*5e7646d2SAndroid Build Coastguard Worker <li><a href="#ENUMERATIONS">Enumerations</a><ul class="subcontents"> 526*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_adv_e">cups_adv_e</a></li> 527*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_bool_e">cups_bool_e</a></li> 528*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_cspace_e">cups_cspace_e</a></li> 529*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_cut_e">cups_cut_e</a></li> 530*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_edge_e">cups_edge_e</a></li> 531*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_jog_e">cups_jog_e</a></li> 532*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_mode_e">cups_mode_e</a></li> 533*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_order_e">cups_order_e</a></li> 534*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cups_orient_e">cups_orient_e</a></li> 535*5e7646d2SAndroid Build Coastguard Worker </ul></li> 536*5e7646d2SAndroid Build Coastguard Worker </ul> 537*5e7646d2SAndroid Build Coastguard Worker </div> 538*5e7646d2SAndroid Build Coastguard Worker <div class="body"> 539*5e7646d2SAndroid Build Coastguard Worker<!-- 540*5e7646d2SAndroid Build Coastguard Worker Raster API introduction for CUPS. 541*5e7646d2SAndroid Build Coastguard Worker 542*5e7646d2SAndroid Build Coastguard Worker Copyright © 2007-2019 by Apple Inc. 543*5e7646d2SAndroid Build Coastguard Worker Copyright © 1997-2006 by Easy Software Products, all rights reserved. 544*5e7646d2SAndroid Build Coastguard Worker 545*5e7646d2SAndroid Build Coastguard Worker Licensed under Apache License v2.0. See the file "LICENSE" for more 546*5e7646d2SAndroid Build Coastguard Worker information. 547*5e7646d2SAndroid Build Coastguard Worker--> 548*5e7646d2SAndroid Build Coastguard Worker 549*5e7646d2SAndroid Build Coastguard Worker<h2 class='title'><a name="OVERVIEW">Overview</a></h2> 550*5e7646d2SAndroid Build Coastguard Worker 551*5e7646d2SAndroid Build Coastguard Worker<p>The CUPS raster API provides a standard interface for reading and writing 552*5e7646d2SAndroid Build Coastguard WorkerCUPS raster streams which are used for printing to raster printers. Because the 553*5e7646d2SAndroid Build Coastguard Workerraster format is updated from time to time, it is important to use this API to 554*5e7646d2SAndroid Build Coastguard Workeravoid incompatibilities with newer versions of CUPS.</p> 555*5e7646d2SAndroid Build Coastguard Worker 556*5e7646d2SAndroid Build Coastguard Worker<p>Two kinds of CUPS filters use the CUPS raster API - raster image processor 557*5e7646d2SAndroid Build Coastguard Worker(RIP) filters such as <code>pstoraster</code> and <code>cgpdftoraster</code> 558*5e7646d2SAndroid Build Coastguard Worker(macOS) that produce CUPS raster files and printer driver filters that 559*5e7646d2SAndroid Build Coastguard Workerconvert CUPS raster files into a format usable by the printer. Printer 560*5e7646d2SAndroid Build Coastguard Workerdriver filters are by far the most common.</p> 561*5e7646d2SAndroid Build Coastguard Worker 562*5e7646d2SAndroid Build Coastguard Worker<p>CUPS raster files (<code>application/vnd.cups-raster</code>) consists of 563*5e7646d2SAndroid Build Coastguard Workera stream of raster page descriptions produced by one of the RIP filters such as 564*5e7646d2SAndroid Build Coastguard Worker<var>pstoraster</var>, <var>imagetoraster</var>, or 565*5e7646d2SAndroid Build Coastguard Worker<var>cgpdftoraster</var>. CUPS raster files are referred to using the 566*5e7646d2SAndroid Build Coastguard Worker<a href='#cups_raster_t'><code>cups_raster_t</code></a> type and are 567*5e7646d2SAndroid Build Coastguard Workeropened using the <a href='#cupsRasterOpen'><code>cupsRasterOpen</code></a> 568*5e7646d2SAndroid Build Coastguard Workerfunction. For example, to read raster data from the standard input, open 569*5e7646d2SAndroid Build Coastguard Workerfile descriptor 0:</p> 570*5e7646d2SAndroid Build Coastguard Worker 571*5e7646d2SAndroid Build Coastguard Worker<pre class="example"> 572*5e7646d2SAndroid Build Coastguard Worker#include <cups/raster.h> 573*5e7646d2SAndroid Build Coastguard Worker 574*5e7646d2SAndroid Build Coastguard Worker<a href="#cups_raster_t">cups_raster_t</a> *ras = <a href="#cupsRasterOpen">cupsRasterOpen</a>(0, CUPS_RASTER_READ); 575*5e7646d2SAndroid Build Coastguard Worker</pre> 576*5e7646d2SAndroid Build Coastguard Worker 577*5e7646d2SAndroid Build Coastguard Worker<p>Each page of data begins with a page dictionary structure called 578*5e7646d2SAndroid Build Coastguard Worker<a href="#cups_page_header2_t"><code>cups_page_header2_t</code></a>. This 579*5e7646d2SAndroid Build Coastguard Workerstructure contains the colorspace, bits per color, media size, media type, 580*5e7646d2SAndroid Build Coastguard Workerhardware resolution, and so forth used for the page.</p> 581*5e7646d2SAndroid Build Coastguard Worker 582*5e7646d2SAndroid Build Coastguard Worker<blockquote><b>Note:</b> 583*5e7646d2SAndroid Build Coastguard Worker 584*5e7646d2SAndroid Build Coastguard Worker <p>Do not confuse the colorspace in the page header with the PPD 585*5e7646d2SAndroid Build Coastguard Worker <tt>ColorModel</tt> keyword. <tt>ColorModel</tt> refers to the general type of 586*5e7646d2SAndroid Build Coastguard Worker color used for a device (Gray, RGB, CMYK, DeviceN) and is often used to 587*5e7646d2SAndroid Build Coastguard Worker select a particular colorspace for the page header along with the associate 588*5e7646d2SAndroid Build Coastguard Worker color profile. The page header colorspace (<tt>cupsColorSpace</tt>) describes 589*5e7646d2SAndroid Build Coastguard Worker both the type and organization of the color data, for example KCMY (black 590*5e7646d2SAndroid Build Coastguard Worker first) instead of CMYK and RGBA (RGB + alpha) instead of RGB.</p> 591*5e7646d2SAndroid Build Coastguard Worker 592*5e7646d2SAndroid Build Coastguard Worker</blockquote> 593*5e7646d2SAndroid Build Coastguard Worker 594*5e7646d2SAndroid Build Coastguard Worker<p>You read the page header using the 595*5e7646d2SAndroid Build Coastguard Worker<a href="#cupsRasterReadHeader2"><code>cupsRasterReadHeader2</code></a> 596*5e7646d2SAndroid Build Coastguard Workerfunction:</p> 597*5e7646d2SAndroid Build Coastguard Worker 598*5e7646d2SAndroid Build Coastguard Worker<pre class="example"> 599*5e7646d2SAndroid Build Coastguard Worker#include <cups/raster.h> 600*5e7646d2SAndroid Build Coastguard Worker 601*5e7646d2SAndroid Build Coastguard Worker<a href="#cups_raster_t">cups_raster_t</a> *ras = <a href="#cupsRasterOpen">cupsRasterOpen</a>(0, CUPS_RASTER_READ); 602*5e7646d2SAndroid Build Coastguard Worker<a href="#cups_page_header2_t">cups_page_header2_t</a> header; 603*5e7646d2SAndroid Build Coastguard Worker 604*5e7646d2SAndroid Build Coastguard Workerwhile (<a href="#cupsRasterReadHeader2">cupsRasterReadHeader2</a>(ras, &header)) 605*5e7646d2SAndroid Build Coastguard Worker{ 606*5e7646d2SAndroid Build Coastguard Worker /* setup this page */ 607*5e7646d2SAndroid Build Coastguard Worker 608*5e7646d2SAndroid Build Coastguard Worker /* read raster data */ 609*5e7646d2SAndroid Build Coastguard Worker 610*5e7646d2SAndroid Build Coastguard Worker /* finish this page */ 611*5e7646d2SAndroid Build Coastguard Worker} 612*5e7646d2SAndroid Build Coastguard Worker</pre> 613*5e7646d2SAndroid Build Coastguard Worker 614*5e7646d2SAndroid Build Coastguard Worker<p>After the page dictionary comes the page data which is a full-resolution, 615*5e7646d2SAndroid Build Coastguard Workerpossibly compressed bitmap representing the page in the printer's output 616*5e7646d2SAndroid Build Coastguard Workercolorspace. You read uncompressed raster data using the 617*5e7646d2SAndroid Build Coastguard Worker<a href="#cupsRasterReadPixels"><code>cupsRasterReadPixels</code></a> 618*5e7646d2SAndroid Build Coastguard Workerfunction. A <code>for</code> loop is normally used to read the page one line 619*5e7646d2SAndroid Build Coastguard Workerat a time:</p> 620*5e7646d2SAndroid Build Coastguard Worker 621*5e7646d2SAndroid Build Coastguard Worker<pre class="example"> 622*5e7646d2SAndroid Build Coastguard Worker#include <cups/raster.h> 623*5e7646d2SAndroid Build Coastguard Worker 624*5e7646d2SAndroid Build Coastguard Worker<a href="#cups_raster_t">cups_raster_t</a> *ras = <a href="#cupsRasterOpen">cupsRasterOpen</a>(0, CUPS_RASTER_READ); 625*5e7646d2SAndroid Build Coastguard Worker<a href="#cups_page_header2_t">cups_page_header2_t</a> header; 626*5e7646d2SAndroid Build Coastguard Workerint page = 0; 627*5e7646d2SAndroid Build Coastguard Workerint y; 628*5e7646d2SAndroid Build Coastguard Workerchar *buffer; 629*5e7646d2SAndroid Build Coastguard Worker 630*5e7646d2SAndroid Build Coastguard Workerwhile (<a href="#cupsRasterReadHeader2">cupsRasterReadHeader2</a>(ras, &header)) 631*5e7646d2SAndroid Build Coastguard Worker{ 632*5e7646d2SAndroid Build Coastguard Worker /* setup this page */ 633*5e7646d2SAndroid Build Coastguard Worker page ++; 634*5e7646d2SAndroid Build Coastguard Worker fprintf(stderr, "PAGE: %d %d\n", page, header.NumCopies); 635*5e7646d2SAndroid Build Coastguard Worker 636*5e7646d2SAndroid Build Coastguard Worker /* allocate memory for 1 line */ 637*5e7646d2SAndroid Build Coastguard Worker buffer = malloc(header.cupsBytesPerLine); 638*5e7646d2SAndroid Build Coastguard Worker 639*5e7646d2SAndroid Build Coastguard Worker /* read raster data */ 640*5e7646d2SAndroid Build Coastguard Worker for (y = 0; y < header.cupsHeight; y ++) 641*5e7646d2SAndroid Build Coastguard Worker { 642*5e7646d2SAndroid Build Coastguard Worker if (<a href="#cupsRasterReadPixels">cupsRasterReadPixels</a>(ras, buffer, header.cupsBytesPerLine) == 0) 643*5e7646d2SAndroid Build Coastguard Worker break; 644*5e7646d2SAndroid Build Coastguard Worker 645*5e7646d2SAndroid Build Coastguard Worker /* write raster data to printer on stdout */ 646*5e7646d2SAndroid Build Coastguard Worker } 647*5e7646d2SAndroid Build Coastguard Worker 648*5e7646d2SAndroid Build Coastguard Worker /* finish this page */ 649*5e7646d2SAndroid Build Coastguard Worker} 650*5e7646d2SAndroid Build Coastguard Worker</pre> 651*5e7646d2SAndroid Build Coastguard Worker 652*5e7646d2SAndroid Build Coastguard Worker<p>When you are done reading the raster data, call the 653*5e7646d2SAndroid Build Coastguard Worker<a href="#cupsRasterClose"><code>cupsRasterClose</code></a> function to free 654*5e7646d2SAndroid Build Coastguard Workerthe memory used to read the raster file:</p> 655*5e7646d2SAndroid Build Coastguard Worker 656*5e7646d2SAndroid Build Coastguard Worker<pre class="example"> 657*5e7646d2SAndroid Build Coastguard Worker<a href="#cups_raster_t">cups_raster_t</a> *ras; 658*5e7646d2SAndroid Build Coastguard Worker 659*5e7646d2SAndroid Build Coastguard Worker<a href="#cupsRasterClose">cupsRasterClose</a>(ras); 660*5e7646d2SAndroid Build Coastguard Worker</pre> 661*5e7646d2SAndroid Build Coastguard Worker 662*5e7646d2SAndroid Build Coastguard Worker 663*5e7646d2SAndroid Build Coastguard Worker<h2 class='title'><a name="TASKS">Functions by Task</a></h2> 664*5e7646d2SAndroid Build Coastguard Worker 665*5e7646d2SAndroid Build Coastguard Worker<h3><a name="OPENCLOSE">Opening and Closing Raster Streams</a></h3> 666*5e7646d2SAndroid Build Coastguard Worker 667*5e7646d2SAndroid Build Coastguard Worker<ul class="code"> 668*5e7646d2SAndroid Build Coastguard Worker 669*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterClose" title="Close a raster stream.">cupsRasterClose</a></li> 670*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterOpen" title="Open a raster stream.">cupsRasterOpen</a></li> 671*5e7646d2SAndroid Build Coastguard Worker 672*5e7646d2SAndroid Build Coastguard Worker</ul> 673*5e7646d2SAndroid Build Coastguard Worker 674*5e7646d2SAndroid Build Coastguard Worker<h3><a name="READING">Reading Raster Streams</a></h3> 675*5e7646d2SAndroid Build Coastguard Worker 676*5e7646d2SAndroid Build Coastguard Worker<ul class="code"> 677*5e7646d2SAndroid Build Coastguard Worker 678*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterReadHeader" title="Read a raster page header and store it in a version 1 page header structure.">cupsRasterReadHeader</a> <span class="info">Deprecated in CUPS 1.2/macOS 10.5</span></li> 679*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterReadHeader2" title="Read a raster page header and store it in a version 2 page header structure.">cupsRasterReadHeader2</a></li> 680*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterReadPixels" title="Read raster pixels.">cupsRasterReadPixels</a></li> 681*5e7646d2SAndroid Build Coastguard Worker 682*5e7646d2SAndroid Build Coastguard Worker</ul> 683*5e7646d2SAndroid Build Coastguard Worker 684*5e7646d2SAndroid Build Coastguard Worker<h3><a name="WRITING">Writing Raster Streams</a></h3> 685*5e7646d2SAndroid Build Coastguard Worker 686*5e7646d2SAndroid Build Coastguard Worker<ul class="code"> 687*5e7646d2SAndroid Build Coastguard Worker 688*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterInitPWGHeader" title="Interpret IPP attributes to create a page header.">cupsRasterInitPWGHeader</a></li> 689*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterWriteHeader" title="Write a raster page header from a version 1 page header structure.">cupsRasterWriteHeader</a> <span class="info">Deprecated in CUPS 1.2/macOS 10.5</span></li> 690*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterWriteHeader2" title="Write a raster page header from a version 2 page header structure.">cupsRasterWriteHeader2</a></li> 691*5e7646d2SAndroid Build Coastguard Worker <li><a href="#cupsRasterWritePixels" title="Write raster pixels.">cupsRasterWritePixels</a></li> 692*5e7646d2SAndroid Build Coastguard Worker 693*5e7646d2SAndroid Build Coastguard Worker</ul> 694*5e7646d2SAndroid Build Coastguard Worker <h2 class="title"><a id="FUNCTIONS">Functions</a></h2> 695*5e7646d2SAndroid Build Coastguard Worker<h3 class="function"><a id="cupsRasterClose">cupsRasterClose</a></h3> 696*5e7646d2SAndroid Build Coastguard Worker <p class="description">Close a raster stream.</p> 697*5e7646d2SAndroid Build Coastguard Worker<p class="code"> 698*5e7646d2SAndroid Build Coastguard Workervoid cupsRasterClose(<a href="#cups_raster_t">cups_raster_t</a> *r);</p> 699*5e7646d2SAndroid Build Coastguard Worker<h4 class="parameters">Parameters</h4> 700*5e7646d2SAndroid Build Coastguard Worker<table class="list"><tbody> 701*5e7646d2SAndroid Build Coastguard Worker<tr><th>r</th> 702*5e7646d2SAndroid Build Coastguard Worker <td class="description">Stream to close</td></tr> 703*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 704*5e7646d2SAndroid Build Coastguard Worker<h4 class="discussion">Discussion</h4> 705*5e7646d2SAndroid Build Coastguard Worker <p class="discussion">The file descriptor associated with the raster stream must be closed 706*5e7646d2SAndroid Build Coastguard Workerseparately as needed.</p> 707*5e7646d2SAndroid Build Coastguard Worker<h3 class="function"><span class="info"> CUPS 1.3/macOS 10.5 </span><a id="cupsRasterErrorString">cupsRasterErrorString</a></h3> 708*5e7646d2SAndroid Build Coastguard Worker <p class="description">Return the last error from a raster function.</p> 709*5e7646d2SAndroid Build Coastguard Worker<p class="code"> 710*5e7646d2SAndroid Build Coastguard Workerconst char *cupsRasterErrorString(void);</p> 711*5e7646d2SAndroid Build Coastguard Worker<h4 class="returnvalue">Return Value</h4> 712*5e7646d2SAndroid Build Coastguard Worker <p class="description">Last error or <code>NULL</code></p> 713*5e7646d2SAndroid Build Coastguard Worker<h4 class="discussion">Discussion</h4> 714*5e7646d2SAndroid Build Coastguard Worker <p class="discussion">If there are no recent errors, <code>NULL</code> is returned. 715*5e7646d2SAndroid Build Coastguard Worker 716*5e7646d2SAndroid Build Coastguard Worker</p> 717*5e7646d2SAndroid Build Coastguard Worker<h3 class="function"><span class="info"> CUPS 2.2/macOS 10.12 </span><a id="cupsRasterInitPWGHeader">cupsRasterInitPWGHeader</a></h3> 718*5e7646d2SAndroid Build Coastguard Worker <p class="description">Initialize a page header for PWG Raster output.</p> 719*5e7646d2SAndroid Build Coastguard Worker<p class="code"> 720*5e7646d2SAndroid Build Coastguard Workerint cupsRasterInitPWGHeader(<a href="#cups_page_header2_t">cups_page_header2_t</a> *h, pwg_media_t *media, const char *type, int xdpi, int ydpi, const char *sides, const char *sheet_back);</p> 721*5e7646d2SAndroid Build Coastguard Worker<h4 class="parameters">Parameters</h4> 722*5e7646d2SAndroid Build Coastguard Worker<table class="list"><tbody> 723*5e7646d2SAndroid Build Coastguard Worker<tr><th>h</th> 724*5e7646d2SAndroid Build Coastguard Worker <td class="description">Page header</td></tr> 725*5e7646d2SAndroid Build Coastguard Worker<tr><th>media</th> 726*5e7646d2SAndroid Build Coastguard Worker <td class="description">PWG media information</td></tr> 727*5e7646d2SAndroid Build Coastguard Worker<tr><th>type</th> 728*5e7646d2SAndroid Build Coastguard Worker <td class="description">PWG raster type string</td></tr> 729*5e7646d2SAndroid Build Coastguard Worker<tr><th>xdpi</th> 730*5e7646d2SAndroid Build Coastguard Worker <td class="description">Cross-feed direction (horizontal) resolution</td></tr> 731*5e7646d2SAndroid Build Coastguard Worker<tr><th>ydpi</th> 732*5e7646d2SAndroid Build Coastguard Worker <td class="description">Feed direction (vertical) resolution</td></tr> 733*5e7646d2SAndroid Build Coastguard Worker<tr><th>sides</th> 734*5e7646d2SAndroid Build Coastguard Worker <td class="description">IPP "sides" option value</td></tr> 735*5e7646d2SAndroid Build Coastguard Worker<tr><th>sheet_back</th> 736*5e7646d2SAndroid Build Coastguard Worker <td class="description">Transform for back side or <code>NULL</code> for none</td></tr> 737*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 738*5e7646d2SAndroid Build Coastguard Worker<h4 class="returnvalue">Return Value</h4> 739*5e7646d2SAndroid Build Coastguard Worker <p class="description">1 on success, 0 on failure</p> 740*5e7646d2SAndroid Build Coastguard Worker<h4 class="discussion">Discussion</h4> 741*5e7646d2SAndroid Build Coastguard Worker <p class="discussion">The "media" argument specifies the media to use.<br> 742*5e7646d2SAndroid Build Coastguard Worker<br> 743*5e7646d2SAndroid Build Coastguard WorkerThe "type" argument specifies a "pwg-raster-document-type-supported" value 744*5e7646d2SAndroid Build Coastguard Workerthat controls the color space and bit depth of the raster data.<br> 745*5e7646d2SAndroid Build Coastguard Worker<br> 746*5e7646d2SAndroid Build Coastguard WorkerThe "xres" and "yres" arguments specify the raster resolution in dots per 747*5e7646d2SAndroid Build Coastguard Workerinch.<br> 748*5e7646d2SAndroid Build Coastguard Worker<br> 749*5e7646d2SAndroid Build Coastguard WorkerThe "sheet_back" argument specifies a "pwg-raster-document-sheet-back" value 750*5e7646d2SAndroid Build Coastguard Workerto apply for the back side of a page. Pass <code>NULL</code> for the front side. 751*5e7646d2SAndroid Build Coastguard Worker 752*5e7646d2SAndroid Build Coastguard Worker</p> 753*5e7646d2SAndroid Build Coastguard Worker<h3 class="function"><a id="cupsRasterOpen">cupsRasterOpen</a></h3> 754*5e7646d2SAndroid Build Coastguard Worker <p class="description">Open a raster stream using a file descriptor.</p> 755*5e7646d2SAndroid Build Coastguard Worker<p class="code"> 756*5e7646d2SAndroid Build Coastguard Worker<a href="#cups_raster_t">cups_raster_t</a> *cupsRasterOpen(int fd, <a href="#cups_mode_t">cups_mode_t</a> mode);</p> 757*5e7646d2SAndroid Build Coastguard Worker<h4 class="parameters">Parameters</h4> 758*5e7646d2SAndroid Build Coastguard Worker<table class="list"><tbody> 759*5e7646d2SAndroid Build Coastguard Worker<tr><th>fd</th> 760*5e7646d2SAndroid Build Coastguard Worker <td class="description">File descriptor</td></tr> 761*5e7646d2SAndroid Build Coastguard Worker<tr><th>mode</th> 762*5e7646d2SAndroid Build Coastguard Worker <td class="description">Mode - <code>CUPS_RASTER_READ</code>, 763*5e7646d2SAndroid Build Coastguard Worker<code>CUPS_RASTER_WRITE</code>, 764*5e7646d2SAndroid Build Coastguard Worker<code>CUPS_RASTER_WRITE_COMPRESSED</code>, 765*5e7646d2SAndroid Build Coastguard Workeror <code>CUPS_RASTER_WRITE_PWG</code></td></tr> 766*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 767*5e7646d2SAndroid Build Coastguard Worker<h4 class="returnvalue">Return Value</h4> 768*5e7646d2SAndroid Build Coastguard Worker <p class="description">New stream</p> 769*5e7646d2SAndroid Build Coastguard Worker<h4 class="discussion">Discussion</h4> 770*5e7646d2SAndroid Build Coastguard Worker <p class="discussion">This function associates a raster stream with the given file descriptor. 771*5e7646d2SAndroid Build Coastguard WorkerFor most printer driver filters, "fd" will be 0 (stdin). For most raster 772*5e7646d2SAndroid Build Coastguard Workerimage processor (RIP) filters that generate raster data, "fd" will be 1 773*5e7646d2SAndroid Build Coastguard Worker(stdout).<br> 774*5e7646d2SAndroid Build Coastguard Worker<br> 775*5e7646d2SAndroid Build Coastguard WorkerWhen writing raster data, the <code>CUPS_RASTER_WRITE</code>, 776*5e7646d2SAndroid Build Coastguard Worker<code>CUPS_RASTER_WRITE_COMPRESS</code>, or <code>CUPS_RASTER_WRITE_PWG</code> mode can 777*5e7646d2SAndroid Build Coastguard Workerbe used - compressed and PWG output is generally 25-50% smaller but adds a 778*5e7646d2SAndroid Build Coastguard Worker100-300% execution time overhead.</p> 779*5e7646d2SAndroid Build Coastguard Worker<h3 class="function"><a id="cupsRasterOpenIO">cupsRasterOpenIO</a></h3> 780*5e7646d2SAndroid Build Coastguard Worker <p class="description">Open a raster stream using a callback function.</p> 781*5e7646d2SAndroid Build Coastguard Worker<p class="code"> 782*5e7646d2SAndroid Build Coastguard Worker<a href="#cups_raster_t">cups_raster_t</a> *cupsRasterOpenIO(<a href="#cups_raster_iocb_t">cups_raster_iocb_t</a> iocb, void *ctx, <a href="#cups_mode_t">cups_mode_t</a> mode);</p> 783*5e7646d2SAndroid Build Coastguard Worker<h4 class="parameters">Parameters</h4> 784*5e7646d2SAndroid Build Coastguard Worker<table class="list"><tbody> 785*5e7646d2SAndroid Build Coastguard Worker<tr><th>iocb</th> 786*5e7646d2SAndroid Build Coastguard Worker <td class="description">Read/write callback</td></tr> 787*5e7646d2SAndroid Build Coastguard Worker<tr><th>ctx</th> 788*5e7646d2SAndroid Build Coastguard Worker <td class="description">Context pointer for callback</td></tr> 789*5e7646d2SAndroid Build Coastguard Worker<tr><th>mode</th> 790*5e7646d2SAndroid Build Coastguard Worker <td class="description">Mode - <code>CUPS_RASTER_READ</code>, 791*5e7646d2SAndroid Build Coastguard Worker<code>CUPS_RASTER_WRITE</code>, 792*5e7646d2SAndroid Build Coastguard Worker<code>CUPS_RASTER_WRITE_COMPRESSED</code>, 793*5e7646d2SAndroid Build Coastguard Workeror <code>CUPS_RASTER_WRITE_PWG</code></td></tr> 794*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 795*5e7646d2SAndroid Build Coastguard Worker<h4 class="returnvalue">Return Value</h4> 796*5e7646d2SAndroid Build Coastguard Worker <p class="description">New stream</p> 797*5e7646d2SAndroid Build Coastguard Worker<h4 class="discussion">Discussion</h4> 798*5e7646d2SAndroid Build Coastguard Worker <p class="discussion">This function associates a raster stream with the given callback function and 799*5e7646d2SAndroid Build Coastguard Workercontext pointer.<br> 800*5e7646d2SAndroid Build Coastguard Worker<br> 801*5e7646d2SAndroid Build Coastguard WorkerWhen writing raster data, the <code>CUPS_RASTER_WRITE</code>, 802*5e7646d2SAndroid Build Coastguard Worker<code>CUPS_RASTER_WRITE_COMPRESS</code>, or <code>CUPS_RASTER_WRITE_PWG</code> mode can 803*5e7646d2SAndroid Build Coastguard Workerbe used - compressed and PWG output is generally 25-50% smaller but adds a 804*5e7646d2SAndroid Build Coastguard Worker100-300% execution time overhead.</p> 805*5e7646d2SAndroid Build Coastguard Worker<h3 class="function"><span class="info"> DEPRECATED </span><a id="cupsRasterReadHeader">cupsRasterReadHeader</a></h3> 806*5e7646d2SAndroid Build Coastguard Worker <p class="description">Read a raster page header and store it in a 807*5e7646d2SAndroid Build Coastguard Workerversion 1 page header structure.</p> 808*5e7646d2SAndroid Build Coastguard Worker<p class="code"> 809*5e7646d2SAndroid Build Coastguard Workerunsigned cupsRasterReadHeader(<a href="#cups_raster_t">cups_raster_t</a> *r, <a href="#cups_page_header_t">cups_page_header_t</a> *h);</p> 810*5e7646d2SAndroid Build Coastguard Worker<h4 class="parameters">Parameters</h4> 811*5e7646d2SAndroid Build Coastguard Worker<table class="list"><tbody> 812*5e7646d2SAndroid Build Coastguard Worker<tr><th>r</th> 813*5e7646d2SAndroid Build Coastguard Worker <td class="description">Raster stream</td></tr> 814*5e7646d2SAndroid Build Coastguard Worker<tr><th>h</th> 815*5e7646d2SAndroid Build Coastguard Worker <td class="description">Pointer to header data</td></tr> 816*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 817*5e7646d2SAndroid Build Coastguard Worker<h4 class="returnvalue">Return Value</h4> 818*5e7646d2SAndroid Build Coastguard Worker <p class="description">1 on success, 0 on failure/end-of-file</p> 819*5e7646d2SAndroid Build Coastguard Worker<h4 class="discussion">Discussion</h4> 820*5e7646d2SAndroid Build Coastguard Worker <p class="discussion">This function is deprecated. Use <a href="#cupsRasterReadHeader2"><code>cupsRasterReadHeader2</code></a> instead.<br> 821*5e7646d2SAndroid Build Coastguard Worker<br> 822*5e7646d2SAndroid Build Coastguard WorkerVersion 1 page headers were used in CUPS 1.0 and 1.1 and contain a subset 823*5e7646d2SAndroid Build Coastguard Workerof the version 2 page header data. This function handles reading version 2 824*5e7646d2SAndroid Build Coastguard Workerpage headers and copying only the version 1 data into the provided buffer. 825*5e7646d2SAndroid Build Coastguard Worker 826*5e7646d2SAndroid Build Coastguard Worker</p> 827*5e7646d2SAndroid Build Coastguard Worker<h3 class="function"><span class="info"> CUPS 1.2/macOS 10.5 </span><a id="cupsRasterReadHeader2">cupsRasterReadHeader2</a></h3> 828*5e7646d2SAndroid Build Coastguard Worker <p class="description">Read a raster page header and store it in a 829*5e7646d2SAndroid Build Coastguard Workerversion 2 page header structure.</p> 830*5e7646d2SAndroid Build Coastguard Worker<p class="code"> 831*5e7646d2SAndroid Build Coastguard Workerunsigned cupsRasterReadHeader2(<a href="#cups_raster_t">cups_raster_t</a> *r, <a href="#cups_page_header2_t">cups_page_header2_t</a> *h);</p> 832*5e7646d2SAndroid Build Coastguard Worker<h4 class="parameters">Parameters</h4> 833*5e7646d2SAndroid Build Coastguard Worker<table class="list"><tbody> 834*5e7646d2SAndroid Build Coastguard Worker<tr><th>r</th> 835*5e7646d2SAndroid Build Coastguard Worker <td class="description">Raster stream</td></tr> 836*5e7646d2SAndroid Build Coastguard Worker<tr><th>h</th> 837*5e7646d2SAndroid Build Coastguard Worker <td class="description">Pointer to header data</td></tr> 838*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 839*5e7646d2SAndroid Build Coastguard Worker<h4 class="returnvalue">Return Value</h4> 840*5e7646d2SAndroid Build Coastguard Worker <p class="description">1 on success, 0 on failure/end-of-file</p> 841*5e7646d2SAndroid Build Coastguard Worker<h3 class="function"><a id="cupsRasterReadPixels">cupsRasterReadPixels</a></h3> 842*5e7646d2SAndroid Build Coastguard Worker <p class="description">Read raster pixels.</p> 843*5e7646d2SAndroid Build Coastguard Worker<p class="code"> 844*5e7646d2SAndroid Build Coastguard Workerunsigned cupsRasterReadPixels(<a href="#cups_raster_t">cups_raster_t</a> *r, unsigned char *p, unsigned len);</p> 845*5e7646d2SAndroid Build Coastguard Worker<h4 class="parameters">Parameters</h4> 846*5e7646d2SAndroid Build Coastguard Worker<table class="list"><tbody> 847*5e7646d2SAndroid Build Coastguard Worker<tr><th>r</th> 848*5e7646d2SAndroid Build Coastguard Worker <td class="description">Raster stream</td></tr> 849*5e7646d2SAndroid Build Coastguard Worker<tr><th>p</th> 850*5e7646d2SAndroid Build Coastguard Worker <td class="description">Pointer to pixel buffer</td></tr> 851*5e7646d2SAndroid Build Coastguard Worker<tr><th>len</th> 852*5e7646d2SAndroid Build Coastguard Worker <td class="description">Number of bytes to read</td></tr> 853*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 854*5e7646d2SAndroid Build Coastguard Worker<h4 class="returnvalue">Return Value</h4> 855*5e7646d2SAndroid Build Coastguard Worker <p class="description">Number of bytes read</p> 856*5e7646d2SAndroid Build Coastguard Worker<h4 class="discussion">Discussion</h4> 857*5e7646d2SAndroid Build Coastguard Worker <p class="discussion">For best performance, filters should read one or more whole lines. 858*5e7646d2SAndroid Build Coastguard WorkerThe "cupsBytesPerLine" value from the page header can be used to allocate 859*5e7646d2SAndroid Build Coastguard Workerthe line buffer and as the number of bytes to read.</p> 860*5e7646d2SAndroid Build Coastguard Worker<h3 class="function"><span class="info"> DEPRECATED </span><a id="cupsRasterWriteHeader">cupsRasterWriteHeader</a></h3> 861*5e7646d2SAndroid Build Coastguard Worker <p class="description">Write a raster page header from a version 1 page 862*5e7646d2SAndroid Build Coastguard Workerheader structure.</p> 863*5e7646d2SAndroid Build Coastguard Worker<p class="code"> 864*5e7646d2SAndroid Build Coastguard Workerunsigned cupsRasterWriteHeader(<a href="#cups_raster_t">cups_raster_t</a> *r, <a href="#cups_page_header_t">cups_page_header_t</a> *h);</p> 865*5e7646d2SAndroid Build Coastguard Worker<h4 class="parameters">Parameters</h4> 866*5e7646d2SAndroid Build Coastguard Worker<table class="list"><tbody> 867*5e7646d2SAndroid Build Coastguard Worker<tr><th>r</th> 868*5e7646d2SAndroid Build Coastguard Worker <td class="description">Raster stream</td></tr> 869*5e7646d2SAndroid Build Coastguard Worker<tr><th>h</th> 870*5e7646d2SAndroid Build Coastguard Worker <td class="description">Raster page header</td></tr> 871*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 872*5e7646d2SAndroid Build Coastguard Worker<h4 class="returnvalue">Return Value</h4> 873*5e7646d2SAndroid Build Coastguard Worker <p class="description">1 on success, 0 on failure</p> 874*5e7646d2SAndroid Build Coastguard Worker<h4 class="discussion">Discussion</h4> 875*5e7646d2SAndroid Build Coastguard Worker <p class="discussion">This function is deprecated. Use <a href="#cupsRasterWriteHeader2"><code>cupsRasterWriteHeader2</code></a> instead. 876*5e7646d2SAndroid Build Coastguard Worker 877*5e7646d2SAndroid Build Coastguard Worker</p> 878*5e7646d2SAndroid Build Coastguard Worker<h3 class="function"><span class="info"> CUPS 1.2/macOS 10.5 </span><a id="cupsRasterWriteHeader2">cupsRasterWriteHeader2</a></h3> 879*5e7646d2SAndroid Build Coastguard Worker <p class="description">Write a raster page header from a version 2 880*5e7646d2SAndroid Build Coastguard Workerpage header structure.</p> 881*5e7646d2SAndroid Build Coastguard Worker<p class="code"> 882*5e7646d2SAndroid Build Coastguard Workerunsigned cupsRasterWriteHeader2(<a href="#cups_raster_t">cups_raster_t</a> *r, <a href="#cups_page_header2_t">cups_page_header2_t</a> *h);</p> 883*5e7646d2SAndroid Build Coastguard Worker<h4 class="parameters">Parameters</h4> 884*5e7646d2SAndroid Build Coastguard Worker<table class="list"><tbody> 885*5e7646d2SAndroid Build Coastguard Worker<tr><th>r</th> 886*5e7646d2SAndroid Build Coastguard Worker <td class="description">Raster stream</td></tr> 887*5e7646d2SAndroid Build Coastguard Worker<tr><th>h</th> 888*5e7646d2SAndroid Build Coastguard Worker <td class="description">Raster page header</td></tr> 889*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 890*5e7646d2SAndroid Build Coastguard Worker<h4 class="returnvalue">Return Value</h4> 891*5e7646d2SAndroid Build Coastguard Worker <p class="description">1 on success, 0 on failure</p> 892*5e7646d2SAndroid Build Coastguard Worker<h4 class="discussion">Discussion</h4> 893*5e7646d2SAndroid Build Coastguard Worker <p class="discussion">The page header can be initialized using <a href="#cupsRasterInitPWGHeader"><code>cupsRasterInitPWGHeader</code></a>. 894*5e7646d2SAndroid Build Coastguard Worker 895*5e7646d2SAndroid Build Coastguard Worker</p> 896*5e7646d2SAndroid Build Coastguard Worker<h3 class="function"><a id="cupsRasterWritePixels">cupsRasterWritePixels</a></h3> 897*5e7646d2SAndroid Build Coastguard Worker <p class="description">Write raster pixels.</p> 898*5e7646d2SAndroid Build Coastguard Worker<p class="code"> 899*5e7646d2SAndroid Build Coastguard Workerunsigned cupsRasterWritePixels(<a href="#cups_raster_t">cups_raster_t</a> *r, unsigned char *p, unsigned len);</p> 900*5e7646d2SAndroid Build Coastguard Worker<h4 class="parameters">Parameters</h4> 901*5e7646d2SAndroid Build Coastguard Worker<table class="list"><tbody> 902*5e7646d2SAndroid Build Coastguard Worker<tr><th>r</th> 903*5e7646d2SAndroid Build Coastguard Worker <td class="description">Raster stream</td></tr> 904*5e7646d2SAndroid Build Coastguard Worker<tr><th>p</th> 905*5e7646d2SAndroid Build Coastguard Worker <td class="description">Bytes to write</td></tr> 906*5e7646d2SAndroid Build Coastguard Worker<tr><th>len</th> 907*5e7646d2SAndroid Build Coastguard Worker <td class="description">Number of bytes to write</td></tr> 908*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 909*5e7646d2SAndroid Build Coastguard Worker<h4 class="returnvalue">Return Value</h4> 910*5e7646d2SAndroid Build Coastguard Worker <p class="description">Number of bytes written</p> 911*5e7646d2SAndroid Build Coastguard Worker<h4 class="discussion">Discussion</h4> 912*5e7646d2SAndroid Build Coastguard Worker <p class="discussion">For best performance, filters should write one or more whole lines. 913*5e7646d2SAndroid Build Coastguard WorkerThe "cupsBytesPerLine" value from the page header can be used to allocate 914*5e7646d2SAndroid Build Coastguard Workerthe line buffer and as the number of bytes to write.</p> 915*5e7646d2SAndroid Build Coastguard Worker <h2 class="title"><a id="TYPES">Data Types</a></h2> 916*5e7646d2SAndroid Build Coastguard Worker <h3 class="typedef"><a id="cups_adv_t">cups_adv_t</a></h3> 917*5e7646d2SAndroid Build Coastguard Worker <p class="description">AdvanceMedia attribute values</p> 918*5e7646d2SAndroid Build Coastguard Worker <p class="code"> 919*5e7646d2SAndroid Build Coastguard Workertypedef enum <a href="#cups_adv_e">cups_adv_e</a> cups_adv_t; 920*5e7646d2SAndroid Build Coastguard Worker</p> 921*5e7646d2SAndroid Build Coastguard Worker <h3 class="typedef"><a id="cups_bool_t">cups_bool_t</a></h3> 922*5e7646d2SAndroid Build Coastguard Worker <p class="description">Boolean type</p> 923*5e7646d2SAndroid Build Coastguard Worker <p class="code"> 924*5e7646d2SAndroid Build Coastguard Workertypedef enum <a href="#cups_bool_e">cups_bool_e</a> cups_bool_t; 925*5e7646d2SAndroid Build Coastguard Worker</p> 926*5e7646d2SAndroid Build Coastguard Worker <h3 class="typedef"><a id="cups_cspace_t">cups_cspace_t</a></h3> 927*5e7646d2SAndroid Build Coastguard Worker <p class="description">cupsColorSpace attribute values</p> 928*5e7646d2SAndroid Build Coastguard Worker <p class="code"> 929*5e7646d2SAndroid Build Coastguard Workertypedef enum <a href="#cups_cspace_e">cups_cspace_e</a> cups_cspace_t; 930*5e7646d2SAndroid Build Coastguard Worker</p> 931*5e7646d2SAndroid Build Coastguard Worker <h3 class="typedef"><a id="cups_cut_t">cups_cut_t</a></h3> 932*5e7646d2SAndroid Build Coastguard Worker <p class="description">CutMedia attribute values</p> 933*5e7646d2SAndroid Build Coastguard Worker <p class="code"> 934*5e7646d2SAndroid Build Coastguard Workertypedef enum <a href="#cups_cut_e">cups_cut_e</a> cups_cut_t; 935*5e7646d2SAndroid Build Coastguard Worker</p> 936*5e7646d2SAndroid Build Coastguard Worker <h3 class="typedef"><a id="cups_edge_t">cups_edge_t</a></h3> 937*5e7646d2SAndroid Build Coastguard Worker <p class="description">LeadingEdge attribute values</p> 938*5e7646d2SAndroid Build Coastguard Worker <p class="code"> 939*5e7646d2SAndroid Build Coastguard Workertypedef enum <a href="#cups_edge_e">cups_edge_e</a> cups_edge_t; 940*5e7646d2SAndroid Build Coastguard Worker</p> 941*5e7646d2SAndroid Build Coastguard Worker <h3 class="typedef"><a id="cups_jog_t">cups_jog_t</a></h3> 942*5e7646d2SAndroid Build Coastguard Worker <p class="description">Jog attribute values</p> 943*5e7646d2SAndroid Build Coastguard Worker <p class="code"> 944*5e7646d2SAndroid Build Coastguard Workertypedef enum <a href="#cups_jog_e">cups_jog_e</a> cups_jog_t; 945*5e7646d2SAndroid Build Coastguard Worker</p> 946*5e7646d2SAndroid Build Coastguard Worker <h3 class="typedef"><a id="cups_mode_t">cups_mode_t</a></h3> 947*5e7646d2SAndroid Build Coastguard Worker <p class="description">cupsRasterOpen modes</p> 948*5e7646d2SAndroid Build Coastguard Worker <p class="code"> 949*5e7646d2SAndroid Build Coastguard Workertypedef enum <a href="#cups_mode_e">cups_mode_e</a> cups_mode_t; 950*5e7646d2SAndroid Build Coastguard Worker</p> 951*5e7646d2SAndroid Build Coastguard Worker <h3 class="typedef"><a id="cups_order_t">cups_order_t</a></h3> 952*5e7646d2SAndroid Build Coastguard Worker <p class="description">cupsColorOrder attribute values</p> 953*5e7646d2SAndroid Build Coastguard Worker <p class="code"> 954*5e7646d2SAndroid Build Coastguard Workertypedef enum <a href="#cups_order_e">cups_order_e</a> cups_order_t; 955*5e7646d2SAndroid Build Coastguard Worker</p> 956*5e7646d2SAndroid Build Coastguard Worker <h3 class="typedef"><a id="cups_orient_t">cups_orient_t</a></h3> 957*5e7646d2SAndroid Build Coastguard Worker <p class="description">Orientation attribute values</p> 958*5e7646d2SAndroid Build Coastguard Worker <p class="code"> 959*5e7646d2SAndroid Build Coastguard Workertypedef enum <a href="#cups_orient_e">cups_orient_e</a> cups_orient_t; 960*5e7646d2SAndroid Build Coastguard Worker</p> 961*5e7646d2SAndroid Build Coastguard Worker <h3 class="typedef"><a id="cups_page_header2_t"><span class="info"> CUPS 1.2/macOS 10.5 </span>cups_page_header2_t</a></h3> 962*5e7646d2SAndroid Build Coastguard Worker <p class="description">Version 2 page header </p> 963*5e7646d2SAndroid Build Coastguard Worker <p class="code"> 964*5e7646d2SAndroid Build Coastguard Workertypedef struct <a href="#cups_page_header2_s">cups_page_header2_s</a> cups_page_header2_t; 965*5e7646d2SAndroid Build Coastguard Worker</p> 966*5e7646d2SAndroid Build Coastguard Worker <h3 class="typedef"><a id="cups_page_header_t"><span class="info"> DEPRECATED </span>cups_page_header_t</a></h3> 967*5e7646d2SAndroid Build Coastguard Worker <p class="description">Version 1 page header </p> 968*5e7646d2SAndroid Build Coastguard Worker <p class="code"> 969*5e7646d2SAndroid Build Coastguard Workertypedef struct <a href="#cups_page_header_s">cups_page_header_s</a> cups_page_header_t; 970*5e7646d2SAndroid Build Coastguard Worker</p> 971*5e7646d2SAndroid Build Coastguard Worker <h3 class="typedef"><a id="cups_raster_iocb_t">cups_raster_iocb_t</a></h3> 972*5e7646d2SAndroid Build Coastguard Worker <p class="description">cupsRasterOpenIO callback function</p> 973*5e7646d2SAndroid Build Coastguard Worker <p class="code"> 974*5e7646d2SAndroid Build Coastguard Workertypedef ssize_t (*cups_raster_iocb_t)(void *ctx, unsigned char *buffer, size_t length); 975*5e7646d2SAndroid Build Coastguard Worker</p> 976*5e7646d2SAndroid Build Coastguard Worker <h3 class="typedef"><a id="cups_raster_t">cups_raster_t</a></h3> 977*5e7646d2SAndroid Build Coastguard Worker <p class="description">Raster stream data</p> 978*5e7646d2SAndroid Build Coastguard Worker <p class="code"> 979*5e7646d2SAndroid Build Coastguard Workertypedef struct _cups_raster_s cups_raster_t; 980*5e7646d2SAndroid Build Coastguard Worker</p> 981*5e7646d2SAndroid Build Coastguard Worker <h2 class="title"><a id="STRUCTURES">Structures</a></h2> 982*5e7646d2SAndroid Build Coastguard Worker<h3 class="struct"><span class="info"> CUPS 1.2/macOS 10.5 </span><a id="cups_page_header2_s">cups_page_header2_s</a></h3> 983*5e7646d2SAndroid Build Coastguard Worker <p class="description">Version 2 page header </p> 984*5e7646d2SAndroid Build Coastguard Worker<p class="code">struct cups_page_header2_s {<br> 985*5e7646d2SAndroid Build Coastguard Worker    unsigned AdvanceDistance;<br> 986*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_adv_t">cups_adv_t</a> AdvanceMedia;<br> 987*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> Collate;<br> 988*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_cut_t">cups_cut_t</a> CutMedia;<br> 989*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> Duplex;<br> 990*5e7646d2SAndroid Build Coastguard Worker    unsigned HWResolution[2];<br> 991*5e7646d2SAndroid Build Coastguard Worker    unsigned ImagingBoundingBox[4];<br> 992*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> InsertSheet;<br> 993*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_jog_t">cups_jog_t</a> Jog;<br> 994*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_edge_t">cups_edge_t</a> LeadingEdge;<br> 995*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> ManualFeed;<br> 996*5e7646d2SAndroid Build Coastguard Worker    unsigned Margins[2];<br> 997*5e7646d2SAndroid Build Coastguard Worker    char MediaClass[64];<br> 998*5e7646d2SAndroid Build Coastguard Worker    char MediaColor[64];<br> 999*5e7646d2SAndroid Build Coastguard Worker    unsigned MediaPosition;<br> 1000*5e7646d2SAndroid Build Coastguard Worker    char MediaType[64];<br> 1001*5e7646d2SAndroid Build Coastguard Worker    unsigned MediaWeight;<br> 1002*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> MirrorPrint;<br> 1003*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> NegativePrint;<br> 1004*5e7646d2SAndroid Build Coastguard Worker    unsigned NumCopies;<br> 1005*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_orient_t">cups_orient_t</a> Orientation;<br> 1006*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> OutputFaceUp;<br> 1007*5e7646d2SAndroid Build Coastguard Worker    char OutputType[64];<br> 1008*5e7646d2SAndroid Build Coastguard Worker    unsigned PageSize[2];<br> 1009*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> Separations;<br> 1010*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> TraySwitch;<br> 1011*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> Tumble;<br> 1012*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsBitsPerColor;<br> 1013*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsBitsPerPixel;<br> 1014*5e7646d2SAndroid Build Coastguard Worker    float cupsBorderlessScalingFactor;<br> 1015*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsBytesPerLine;<br> 1016*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_order_t">cups_order_t</a> cupsColorOrder;<br> 1017*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_cspace_t">cups_cspace_t</a> cupsColorSpace;<br> 1018*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsCompression;<br> 1019*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsHeight;<br> 1020*5e7646d2SAndroid Build Coastguard Worker    float cupsImagingBBox[4];<br> 1021*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsInteger[16];<br> 1022*5e7646d2SAndroid Build Coastguard Worker    char cupsMarkerType[64];<br> 1023*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsMediaType;<br> 1024*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsNumColors;<br> 1025*5e7646d2SAndroid Build Coastguard Worker    char cupsPageSizeName[64];<br> 1026*5e7646d2SAndroid Build Coastguard Worker    float cupsPageSize[2];<br> 1027*5e7646d2SAndroid Build Coastguard Worker    float cupsReal[16];<br> 1028*5e7646d2SAndroid Build Coastguard Worker    char cupsRenderingIntent[64];<br> 1029*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsRowCount;<br> 1030*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsRowFeed;<br> 1031*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsRowStep;<br> 1032*5e7646d2SAndroid Build Coastguard Worker    char cupsString[16][64];<br> 1033*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsWidth;<br> 1034*5e7646d2SAndroid Build Coastguard Worker};</p> 1035*5e7646d2SAndroid Build Coastguard Worker<h4 class="members">Members</h4> 1036*5e7646d2SAndroid Build Coastguard Worker<table class="list"><tbody> 1037*5e7646d2SAndroid Build Coastguard Worker<tr><th>AdvanceDistance </th> 1038*5e7646d2SAndroid Build Coastguard Worker <td class="description">AdvanceDistance value in points</td></tr> 1039*5e7646d2SAndroid Build Coastguard Worker<tr><th>AdvanceMedia </th> 1040*5e7646d2SAndroid Build Coastguard Worker <td class="description">AdvanceMedia value (<a href="#cups_adv_t"><code>cups_adv_t</code></a>)</td></tr> 1041*5e7646d2SAndroid Build Coastguard Worker<tr><th>Collate </th> 1042*5e7646d2SAndroid Build Coastguard Worker <td class="description">Collated copies value</td></tr> 1043*5e7646d2SAndroid Build Coastguard Worker<tr><th>CutMedia </th> 1044*5e7646d2SAndroid Build Coastguard Worker <td class="description">CutMedia value (<a href="#cups_cut_t"><code>cups_cut_t</code></a>)</td></tr> 1045*5e7646d2SAndroid Build Coastguard Worker<tr><th>Duplex </th> 1046*5e7646d2SAndroid Build Coastguard Worker <td class="description">Duplexed (double-sided) value</td></tr> 1047*5e7646d2SAndroid Build Coastguard Worker<tr><th>HWResolution[2] </th> 1048*5e7646d2SAndroid Build Coastguard Worker <td class="description">Resolution in dots-per-inch</td></tr> 1049*5e7646d2SAndroid Build Coastguard Worker<tr><th>ImagingBoundingBox[4] </th> 1050*5e7646d2SAndroid Build Coastguard Worker <td class="description">Pixel region that is painted (points, left, bottom, right, top)</td></tr> 1051*5e7646d2SAndroid Build Coastguard Worker<tr><th>InsertSheet </th> 1052*5e7646d2SAndroid Build Coastguard Worker <td class="description">InsertSheet value</td></tr> 1053*5e7646d2SAndroid Build Coastguard Worker<tr><th>Jog </th> 1054*5e7646d2SAndroid Build Coastguard Worker <td class="description">Jog value (<a href="#cups_jog_t"><code>cups_jog_t</code></a>)</td></tr> 1055*5e7646d2SAndroid Build Coastguard Worker<tr><th>LeadingEdge </th> 1056*5e7646d2SAndroid Build Coastguard Worker <td class="description">LeadingEdge value (<a href="#cups_edge_t"><code>cups_edge_t</code></a>)</td></tr> 1057*5e7646d2SAndroid Build Coastguard Worker<tr><th>ManualFeed </th> 1058*5e7646d2SAndroid Build Coastguard Worker <td class="description">ManualFeed value</td></tr> 1059*5e7646d2SAndroid Build Coastguard Worker<tr><th>Margins[2] </th> 1060*5e7646d2SAndroid Build Coastguard Worker <td class="description">Lower-lefthand margins in points</td></tr> 1061*5e7646d2SAndroid Build Coastguard Worker<tr><th>MediaClass[64] </th> 1062*5e7646d2SAndroid Build Coastguard Worker <td class="description">MediaClass string</td></tr> 1063*5e7646d2SAndroid Build Coastguard Worker<tr><th>MediaColor[64] </th> 1064*5e7646d2SAndroid Build Coastguard Worker <td class="description">MediaColor string</td></tr> 1065*5e7646d2SAndroid Build Coastguard Worker<tr><th>MediaPosition </th> 1066*5e7646d2SAndroid Build Coastguard Worker <td class="description">MediaPosition value</td></tr> 1067*5e7646d2SAndroid Build Coastguard Worker<tr><th>MediaType[64] </th> 1068*5e7646d2SAndroid Build Coastguard Worker <td class="description">MediaType string</td></tr> 1069*5e7646d2SAndroid Build Coastguard Worker<tr><th>MediaWeight </th> 1070*5e7646d2SAndroid Build Coastguard Worker <td class="description">MediaWeight value in grams/m^2</td></tr> 1071*5e7646d2SAndroid Build Coastguard Worker<tr><th>MirrorPrint </th> 1072*5e7646d2SAndroid Build Coastguard Worker <td class="description">MirrorPrint value</td></tr> 1073*5e7646d2SAndroid Build Coastguard Worker<tr><th>NegativePrint </th> 1074*5e7646d2SAndroid Build Coastguard Worker <td class="description">NegativePrint value</td></tr> 1075*5e7646d2SAndroid Build Coastguard Worker<tr><th>NumCopies </th> 1076*5e7646d2SAndroid Build Coastguard Worker <td class="description">Number of copies to produce</td></tr> 1077*5e7646d2SAndroid Build Coastguard Worker<tr><th>Orientation </th> 1078*5e7646d2SAndroid Build Coastguard Worker <td class="description">Orientation value (<a href="#cups_orient_t"><code>cups_orient_t</code></a>)</td></tr> 1079*5e7646d2SAndroid Build Coastguard Worker<tr><th>OutputFaceUp </th> 1080*5e7646d2SAndroid Build Coastguard Worker <td class="description">OutputFaceUp value</td></tr> 1081*5e7646d2SAndroid Build Coastguard Worker<tr><th>OutputType[64] </th> 1082*5e7646d2SAndroid Build Coastguard Worker <td class="description">OutputType string</td></tr> 1083*5e7646d2SAndroid Build Coastguard Worker<tr><th>PageSize[2] </th> 1084*5e7646d2SAndroid Build Coastguard Worker <td class="description">Width and length of page in points</td></tr> 1085*5e7646d2SAndroid Build Coastguard Worker<tr><th>Separations </th> 1086*5e7646d2SAndroid Build Coastguard Worker <td class="description">Separations value</td></tr> 1087*5e7646d2SAndroid Build Coastguard Worker<tr><th>TraySwitch </th> 1088*5e7646d2SAndroid Build Coastguard Worker <td class="description">TraySwitch value</td></tr> 1089*5e7646d2SAndroid Build Coastguard Worker<tr><th>Tumble </th> 1090*5e7646d2SAndroid Build Coastguard Worker <td class="description">Tumble value</td></tr> 1091*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsBitsPerColor </th> 1092*5e7646d2SAndroid Build Coastguard Worker <td class="description">Number of bits for each color</td></tr> 1093*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsBitsPerPixel </th> 1094*5e7646d2SAndroid Build Coastguard Worker <td class="description">Number of bits for each pixel</td></tr> 1095*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsBorderlessScalingFactor <span class="info"> CUPS 1.2/macOS 10.5 </span></th> 1096*5e7646d2SAndroid Build Coastguard Worker <td class="description">Scaling that was applied to page data </td></tr> 1097*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsBytesPerLine </th> 1098*5e7646d2SAndroid Build Coastguard Worker <td class="description">Number of bytes per line</td></tr> 1099*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsColorOrder </th> 1100*5e7646d2SAndroid Build Coastguard Worker <td class="description">Order of colors</td></tr> 1101*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsColorSpace </th> 1102*5e7646d2SAndroid Build Coastguard Worker <td class="description">True colorspace</td></tr> 1103*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsCompression </th> 1104*5e7646d2SAndroid Build Coastguard Worker <td class="description">Device compression to use</td></tr> 1105*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsHeight </th> 1106*5e7646d2SAndroid Build Coastguard Worker <td class="description">Height of page image in pixels</td></tr> 1107*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsImagingBBox[4] <span class="info"> CUPS 1.2/macOS 10.5 </span></th> 1108*5e7646d2SAndroid Build Coastguard Worker <td class="description">Floating point ImagingBoundingBox 1109*5e7646d2SAndroid Build Coastguard Worker(scaling factor not applied, left, 1110*5e7646d2SAndroid Build Coastguard Workerbottom, right, top) </td></tr> 1111*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsInteger[16] <span class="info"> CUPS 1.2/macOS 10.5 </span></th> 1112*5e7646d2SAndroid Build Coastguard Worker <td class="description">User-defined integer values </td></tr> 1113*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsMarkerType[64] <span class="info"> CUPS 1.2/macOS 10.5 </span></th> 1114*5e7646d2SAndroid Build Coastguard Worker <td class="description">Ink/toner type </td></tr> 1115*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsMediaType </th> 1116*5e7646d2SAndroid Build Coastguard Worker <td class="description">Media type code</td></tr> 1117*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsNumColors <span class="info"> CUPS 1.2/macOS 10.5 </span></th> 1118*5e7646d2SAndroid Build Coastguard Worker <td class="description">Number of color compoents </td></tr> 1119*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsPageSizeName[64] <span class="info"> CUPS 1.2/macOS 10.5 </span></th> 1120*5e7646d2SAndroid Build Coastguard Worker <td class="description">PageSize name </td></tr> 1121*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsPageSize[2] <span class="info"> CUPS 1.2/macOS 10.5 </span></th> 1122*5e7646d2SAndroid Build Coastguard Worker <td class="description">Floating point PageSize (scaling * 1123*5e7646d2SAndroid Build Coastguard Workerfactor not applied) </td></tr> 1124*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsReal[16] <span class="info"> CUPS 1.2/macOS 10.5 </span></th> 1125*5e7646d2SAndroid Build Coastguard Worker <td class="description">User-defined floating-point values </td></tr> 1126*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsRenderingIntent[64] <span class="info"> CUPS 1.2/macOS 10.5 </span></th> 1127*5e7646d2SAndroid Build Coastguard Worker <td class="description">Color rendering intent </td></tr> 1128*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsRowCount </th> 1129*5e7646d2SAndroid Build Coastguard Worker <td class="description">Rows per band</td></tr> 1130*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsRowFeed </th> 1131*5e7646d2SAndroid Build Coastguard Worker <td class="description">Feed between bands</td></tr> 1132*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsRowStep </th> 1133*5e7646d2SAndroid Build Coastguard Worker <td class="description">Spacing between lines</td></tr> 1134*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsString[16][64] <span class="info"> CUPS 1.2/macOS 10.5 </span></th> 1135*5e7646d2SAndroid Build Coastguard Worker <td class="description">User-defined string values </td></tr> 1136*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsWidth </th> 1137*5e7646d2SAndroid Build Coastguard Worker <td class="description">Width of page image in pixels</td></tr> 1138*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 1139*5e7646d2SAndroid Build Coastguard Worker<h3 class="struct"><span class="info"> DEPRECATED </span><a id="cups_page_header_s">cups_page_header_s</a></h3> 1140*5e7646d2SAndroid Build Coastguard Worker <p class="description">Version 1 page header </p> 1141*5e7646d2SAndroid Build Coastguard Worker<p class="code">struct cups_page_header_s {<br> 1142*5e7646d2SAndroid Build Coastguard Worker    unsigned AdvanceDistance;<br> 1143*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_adv_t">cups_adv_t</a> AdvanceMedia;<br> 1144*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> Collate;<br> 1145*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_cut_t">cups_cut_t</a> CutMedia;<br> 1146*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> Duplex;<br> 1147*5e7646d2SAndroid Build Coastguard Worker    unsigned HWResolution[2];<br> 1148*5e7646d2SAndroid Build Coastguard Worker    unsigned ImagingBoundingBox[4];<br> 1149*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> InsertSheet;<br> 1150*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_jog_t">cups_jog_t</a> Jog;<br> 1151*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_edge_t">cups_edge_t</a> LeadingEdge;<br> 1152*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> ManualFeed;<br> 1153*5e7646d2SAndroid Build Coastguard Worker    unsigned Margins[2];<br> 1154*5e7646d2SAndroid Build Coastguard Worker    char MediaClass[64];<br> 1155*5e7646d2SAndroid Build Coastguard Worker    char MediaColor[64];<br> 1156*5e7646d2SAndroid Build Coastguard Worker    unsigned MediaPosition;<br> 1157*5e7646d2SAndroid Build Coastguard Worker    char MediaType[64];<br> 1158*5e7646d2SAndroid Build Coastguard Worker    unsigned MediaWeight;<br> 1159*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> MirrorPrint;<br> 1160*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> NegativePrint;<br> 1161*5e7646d2SAndroid Build Coastguard Worker    unsigned NumCopies;<br> 1162*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_orient_t">cups_orient_t</a> Orientation;<br> 1163*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> OutputFaceUp;<br> 1164*5e7646d2SAndroid Build Coastguard Worker    char OutputType[64];<br> 1165*5e7646d2SAndroid Build Coastguard Worker    unsigned PageSize[2];<br> 1166*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> Separations;<br> 1167*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> TraySwitch;<br> 1168*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_bool_t">cups_bool_t</a> Tumble;<br> 1169*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsBitsPerColor;<br> 1170*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsBitsPerPixel;<br> 1171*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsBytesPerLine;<br> 1172*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_order_t">cups_order_t</a> cupsColorOrder;<br> 1173*5e7646d2SAndroid Build Coastguard Worker    <a href="#cups_cspace_t">cups_cspace_t</a> cupsColorSpace;<br> 1174*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsCompression;<br> 1175*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsHeight;<br> 1176*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsMediaType;<br> 1177*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsRowCount;<br> 1178*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsRowFeed;<br> 1179*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsRowStep;<br> 1180*5e7646d2SAndroid Build Coastguard Worker    unsigned cupsWidth;<br> 1181*5e7646d2SAndroid Build Coastguard Worker};</p> 1182*5e7646d2SAndroid Build Coastguard Worker<h4 class="members">Members</h4> 1183*5e7646d2SAndroid Build Coastguard Worker<table class="list"><tbody> 1184*5e7646d2SAndroid Build Coastguard Worker<tr><th>AdvanceDistance </th> 1185*5e7646d2SAndroid Build Coastguard Worker <td class="description">AdvanceDistance value in points</td></tr> 1186*5e7646d2SAndroid Build Coastguard Worker<tr><th>AdvanceMedia </th> 1187*5e7646d2SAndroid Build Coastguard Worker <td class="description">AdvanceMedia value (<a href="#cups_adv_t"><code>cups_adv_t</code></a>)</td></tr> 1188*5e7646d2SAndroid Build Coastguard Worker<tr><th>Collate </th> 1189*5e7646d2SAndroid Build Coastguard Worker <td class="description">Collated copies value</td></tr> 1190*5e7646d2SAndroid Build Coastguard Worker<tr><th>CutMedia </th> 1191*5e7646d2SAndroid Build Coastguard Worker <td class="description">CutMedia value (<a href="#cups_cut_t"><code>cups_cut_t</code></a>)</td></tr> 1192*5e7646d2SAndroid Build Coastguard Worker<tr><th>Duplex </th> 1193*5e7646d2SAndroid Build Coastguard Worker <td class="description">Duplexed (double-sided) value</td></tr> 1194*5e7646d2SAndroid Build Coastguard Worker<tr><th>HWResolution[2] </th> 1195*5e7646d2SAndroid Build Coastguard Worker <td class="description">Resolution in dots-per-inch</td></tr> 1196*5e7646d2SAndroid Build Coastguard Worker<tr><th>ImagingBoundingBox[4] </th> 1197*5e7646d2SAndroid Build Coastguard Worker <td class="description">Pixel region that is painted (points, left, bottom, right, top)</td></tr> 1198*5e7646d2SAndroid Build Coastguard Worker<tr><th>InsertSheet </th> 1199*5e7646d2SAndroid Build Coastguard Worker <td class="description">InsertSheet value</td></tr> 1200*5e7646d2SAndroid Build Coastguard Worker<tr><th>Jog </th> 1201*5e7646d2SAndroid Build Coastguard Worker <td class="description">Jog value (<a href="#cups_jog_t"><code>cups_jog_t</code></a>)</td></tr> 1202*5e7646d2SAndroid Build Coastguard Worker<tr><th>LeadingEdge </th> 1203*5e7646d2SAndroid Build Coastguard Worker <td class="description">LeadingEdge value (<a href="#cups_edge_t"><code>cups_edge_t</code></a>)</td></tr> 1204*5e7646d2SAndroid Build Coastguard Worker<tr><th>ManualFeed </th> 1205*5e7646d2SAndroid Build Coastguard Worker <td class="description">ManualFeed value</td></tr> 1206*5e7646d2SAndroid Build Coastguard Worker<tr><th>Margins[2] </th> 1207*5e7646d2SAndroid Build Coastguard Worker <td class="description">Lower-lefthand margins in points</td></tr> 1208*5e7646d2SAndroid Build Coastguard Worker<tr><th>MediaClass[64] </th> 1209*5e7646d2SAndroid Build Coastguard Worker <td class="description">MediaClass string</td></tr> 1210*5e7646d2SAndroid Build Coastguard Worker<tr><th>MediaColor[64] </th> 1211*5e7646d2SAndroid Build Coastguard Worker <td class="description">MediaColor string</td></tr> 1212*5e7646d2SAndroid Build Coastguard Worker<tr><th>MediaPosition </th> 1213*5e7646d2SAndroid Build Coastguard Worker <td class="description">MediaPosition value</td></tr> 1214*5e7646d2SAndroid Build Coastguard Worker<tr><th>MediaType[64] </th> 1215*5e7646d2SAndroid Build Coastguard Worker <td class="description">MediaType string</td></tr> 1216*5e7646d2SAndroid Build Coastguard Worker<tr><th>MediaWeight </th> 1217*5e7646d2SAndroid Build Coastguard Worker <td class="description">MediaWeight value in grams/m^2</td></tr> 1218*5e7646d2SAndroid Build Coastguard Worker<tr><th>MirrorPrint </th> 1219*5e7646d2SAndroid Build Coastguard Worker <td class="description">MirrorPrint value</td></tr> 1220*5e7646d2SAndroid Build Coastguard Worker<tr><th>NegativePrint </th> 1221*5e7646d2SAndroid Build Coastguard Worker <td class="description">NegativePrint value</td></tr> 1222*5e7646d2SAndroid Build Coastguard Worker<tr><th>NumCopies </th> 1223*5e7646d2SAndroid Build Coastguard Worker <td class="description">Number of copies to produce</td></tr> 1224*5e7646d2SAndroid Build Coastguard Worker<tr><th>Orientation </th> 1225*5e7646d2SAndroid Build Coastguard Worker <td class="description">Orientation value (<a href="#cups_orient_t"><code>cups_orient_t</code></a>)</td></tr> 1226*5e7646d2SAndroid Build Coastguard Worker<tr><th>OutputFaceUp </th> 1227*5e7646d2SAndroid Build Coastguard Worker <td class="description">OutputFaceUp value</td></tr> 1228*5e7646d2SAndroid Build Coastguard Worker<tr><th>OutputType[64] </th> 1229*5e7646d2SAndroid Build Coastguard Worker <td class="description">OutputType string</td></tr> 1230*5e7646d2SAndroid Build Coastguard Worker<tr><th>PageSize[2] </th> 1231*5e7646d2SAndroid Build Coastguard Worker <td class="description">Width and length of page in points</td></tr> 1232*5e7646d2SAndroid Build Coastguard Worker<tr><th>Separations </th> 1233*5e7646d2SAndroid Build Coastguard Worker <td class="description">Separations value</td></tr> 1234*5e7646d2SAndroid Build Coastguard Worker<tr><th>TraySwitch </th> 1235*5e7646d2SAndroid Build Coastguard Worker <td class="description">TraySwitch value</td></tr> 1236*5e7646d2SAndroid Build Coastguard Worker<tr><th>Tumble </th> 1237*5e7646d2SAndroid Build Coastguard Worker <td class="description">Tumble value</td></tr> 1238*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsBitsPerColor </th> 1239*5e7646d2SAndroid Build Coastguard Worker <td class="description">Number of bits for each color</td></tr> 1240*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsBitsPerPixel </th> 1241*5e7646d2SAndroid Build Coastguard Worker <td class="description">Number of bits for each pixel</td></tr> 1242*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsBytesPerLine </th> 1243*5e7646d2SAndroid Build Coastguard Worker <td class="description">Number of bytes per line</td></tr> 1244*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsColorOrder </th> 1245*5e7646d2SAndroid Build Coastguard Worker <td class="description">Order of colors</td></tr> 1246*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsColorSpace </th> 1247*5e7646d2SAndroid Build Coastguard Worker <td class="description">True colorspace</td></tr> 1248*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsCompression </th> 1249*5e7646d2SAndroid Build Coastguard Worker <td class="description">Device compression to use</td></tr> 1250*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsHeight </th> 1251*5e7646d2SAndroid Build Coastguard Worker <td class="description">Height of page image in pixels</td></tr> 1252*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsMediaType </th> 1253*5e7646d2SAndroid Build Coastguard Worker <td class="description">Media type code</td></tr> 1254*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsRowCount </th> 1255*5e7646d2SAndroid Build Coastguard Worker <td class="description">Rows per band</td></tr> 1256*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsRowFeed </th> 1257*5e7646d2SAndroid Build Coastguard Worker <td class="description">Feed between bands</td></tr> 1258*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsRowStep </th> 1259*5e7646d2SAndroid Build Coastguard Worker <td class="description">Spacing between lines</td></tr> 1260*5e7646d2SAndroid Build Coastguard Worker<tr><th>cupsWidth </th> 1261*5e7646d2SAndroid Build Coastguard Worker <td class="description">Width of page image in pixels</td></tr> 1262*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 1263*5e7646d2SAndroid Build Coastguard Worker <h2 class="title"><a id="ENUMERATIONS">Constants</a></h2> 1264*5e7646d2SAndroid Build Coastguard Worker <h3 class="enumeration"><a id="cups_adv_e">cups_adv_e</a></h3> 1265*5e7646d2SAndroid Build Coastguard Worker <p class="description">AdvanceMedia attribute values</p> 1266*5e7646d2SAndroid Build Coastguard Worker <h4 class="constants">Constants</h4> 1267*5e7646d2SAndroid Build Coastguard Worker <table class="list"><tbody> 1268*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_ADVANCE_FILE </th> <td class="description">Advance the roll after this file</td></tr> 1269*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_ADVANCE_JOB </th> <td class="description">Advance the roll after this job</td></tr> 1270*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_ADVANCE_NONE </th> <td class="description">Never advance the roll</td></tr> 1271*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_ADVANCE_PAGE </th> <td class="description">Advance the roll after this page</td></tr> 1272*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_ADVANCE_SET </th> <td class="description">Advance the roll after this set</td></tr> 1273*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 1274*5e7646d2SAndroid Build Coastguard Worker <h3 class="enumeration"><a id="cups_bool_e">cups_bool_e</a></h3> 1275*5e7646d2SAndroid Build Coastguard Worker <p class="description">Boolean type</p> 1276*5e7646d2SAndroid Build Coastguard Worker <h4 class="constants">Constants</h4> 1277*5e7646d2SAndroid Build Coastguard Worker <table class="list"><tbody> 1278*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_FALSE </th> <td class="description">Logical false</td></tr> 1279*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_TRUE </th> <td class="description">Logical true</td></tr> 1280*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 1281*5e7646d2SAndroid Build Coastguard Worker <h3 class="enumeration"><a id="cups_cspace_e">cups_cspace_e</a></h3> 1282*5e7646d2SAndroid Build Coastguard Worker <p class="description">cupsColorSpace attribute values</p> 1283*5e7646d2SAndroid Build Coastguard Worker <h4 class="constants">Constants</h4> 1284*5e7646d2SAndroid Build Coastguard Worker <table class="list"><tbody> 1285*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_ADOBERGB <span class="info"> CUPS 1.4.5 </span></th> <td class="description">Red, green, blue (Adobe RGB) </td></tr> 1286*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_CIELab <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">CIE Lab </td></tr> 1287*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_CIEXYZ <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">CIE XYZ </td></tr> 1288*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_CMY </th> <td class="description">Cyan, magenta, yellow (DeviceCMY)</td></tr> 1289*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_CMYK </th> <td class="description">Cyan, magenta, yellow, black (DeviceCMYK)</td></tr> 1290*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_DEVICE1 <span class="info"> CUPS 1.4.5 </span></th> <td class="description">DeviceN, 1 color </td></tr> 1291*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_DEVICE2 <span class="info"> CUPS 1.4.5 </span></th> <td class="description">DeviceN, 2 colors </td></tr> 1292*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_DEVICE3 <span class="info"> CUPS 1.4.5 </span></th> <td class="description">DeviceN, 3 colors </td></tr> 1293*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_DEVICE4 <span class="info"> CUPS 1.4.5 </span></th> <td class="description">DeviceN, 4 colors </td></tr> 1294*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_DEVICE5 <span class="info"> CUPS 1.4.5 </span></th> <td class="description">DeviceN, 5 colors </td></tr> 1295*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_DEVICE6 <span class="info"> CUPS 1.4.5 </span></th> <td class="description">DeviceN, 6 colors </td></tr> 1296*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_DEVICE7 <span class="info"> CUPS 1.4.5 </span></th> <td class="description">DeviceN, 7 colors </td></tr> 1297*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_DEVICE8 <span class="info"> CUPS 1.4.5 </span></th> <td class="description">DeviceN, 8 colors </td></tr> 1298*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_DEVICE9 <span class="info"> CUPS 1.4.5 </span></th> <td class="description">DeviceN, 9 colors </td></tr> 1299*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_DEVICEA <span class="info"> CUPS 1.4.5 </span></th> <td class="description">DeviceN, 10 colors </td></tr> 1300*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_DEVICEB <span class="info"> CUPS 1.4.5 </span></th> <td class="description">DeviceN, 11 colors </td></tr> 1301*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_DEVICEC <span class="info"> CUPS 1.4.5 </span></th> <td class="description">DeviceN, 12 colors </td></tr> 1302*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_DEVICED <span class="info"> CUPS 1.4.5 </span></th> <td class="description">DeviceN, 13 colors </td></tr> 1303*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_DEVICEE <span class="info"> CUPS 1.4.5 </span></th> <td class="description">DeviceN, 14 colors </td></tr> 1304*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_DEVICEF <span class="info"> CUPS 1.4.5 </span></th> <td class="description">DeviceN, 15 colors </td></tr> 1305*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_GMCK <span class="info"> DEPRECATED </span></th> <td class="description">Gold, magenta, yellow, black </td></tr> 1306*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_GMCS <span class="info"> DEPRECATED </span></th> <td class="description">Gold, magenta, yellow, silver </td></tr> 1307*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_GOLD <span class="info"> DEPRECATED </span></th> <td class="description">Gold foil </td></tr> 1308*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_ICC1 <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">ICC-based, 1 color </td></tr> 1309*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_ICC2 <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">ICC-based, 2 colors </td></tr> 1310*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_ICC3 <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">ICC-based, 3 colors </td></tr> 1311*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_ICC4 <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">ICC-based, 4 colors </td></tr> 1312*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_ICC5 <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">ICC-based, 5 colors </td></tr> 1313*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_ICC6 <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">ICC-based, 6 colors </td></tr> 1314*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_ICC7 <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">ICC-based, 7 colors </td></tr> 1315*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_ICC8 <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">ICC-based, 8 colors </td></tr> 1316*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_ICC9 <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">ICC-based, 9 colors </td></tr> 1317*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_ICCA <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">ICC-based, 10 colors </td></tr> 1318*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_ICCB <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">ICC-based, 11 colors </td></tr> 1319*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_ICCC <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">ICC-based, 12 colors </td></tr> 1320*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_ICCD <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">ICC-based, 13 colors </td></tr> 1321*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_ICCE <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">ICC-based, 14 colors </td></tr> 1322*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_ICCF <span class="info"> CUPS 1.1.19/macOS 10.3 </span></th> <td class="description">ICC-based, 15 colors </td></tr> 1323*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_K </th> <td class="description">Black (DeviceK)</td></tr> 1324*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_KCMY <span class="info"> DEPRECATED </span></th> <td class="description">Black, cyan, magenta, yellow </td></tr> 1325*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_KCMYcm <span class="info"> DEPRECATED </span></th> <td class="description">Black, cyan, magenta, yellow, light-cyan, light-magenta </td></tr> 1326*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_RGB </th> <td class="description">Red, green, blue (DeviceRGB, sRGB by default)</td></tr> 1327*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_RGBA </th> <td class="description">Red, green, blue, alpha (DeviceRGB, sRGB by default)</td></tr> 1328*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_RGBW <span class="info"> CUPS 1.2/macOS 10.5 </span></th> <td class="description">Red, green, blue, white (DeviceRGB, sRGB by default) </td></tr> 1329*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_SILVER <span class="info"> DEPRECATED </span></th> <td class="description">Silver foil </td></tr> 1330*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_SRGB <span class="info"> CUPS 1.4.5 </span></th> <td class="description">Red, green, blue (sRGB) </td></tr> 1331*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_SW <span class="info"> CUPS 1.4.5 </span></th> <td class="description">Luminance (gamma 2.2) </td></tr> 1332*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_W </th> <td class="description">Luminance (DeviceGray, gamma 2.2 by default)</td></tr> 1333*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_WHITE <span class="info"> DEPRECATED </span></th> <td class="description">White ink (as black) </td></tr> 1334*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_YMC <span class="info"> DEPRECATED </span></th> <td class="description">Yellow, magenta, cyan </td></tr> 1335*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CSPACE_YMCK <span class="info"> DEPRECATED </span></th> <td class="description">Yellow, magenta, cyan, black </td></tr> 1336*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 1337*5e7646d2SAndroid Build Coastguard Worker <h3 class="enumeration"><a id="cups_cut_e">cups_cut_e</a></h3> 1338*5e7646d2SAndroid Build Coastguard Worker <p class="description">CutMedia attribute values</p> 1339*5e7646d2SAndroid Build Coastguard Worker <h4 class="constants">Constants</h4> 1340*5e7646d2SAndroid Build Coastguard Worker <table class="list"><tbody> 1341*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CUT_FILE </th> <td class="description">Cut the roll after this file</td></tr> 1342*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CUT_JOB </th> <td class="description">Cut the roll after this job</td></tr> 1343*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CUT_NONE </th> <td class="description">Never cut the roll</td></tr> 1344*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CUT_PAGE </th> <td class="description">Cut the roll after this page</td></tr> 1345*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_CUT_SET </th> <td class="description">Cut the roll after this set</td></tr> 1346*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 1347*5e7646d2SAndroid Build Coastguard Worker <h3 class="enumeration"><a id="cups_edge_e">cups_edge_e</a></h3> 1348*5e7646d2SAndroid Build Coastguard Worker <p class="description">LeadingEdge attribute values</p> 1349*5e7646d2SAndroid Build Coastguard Worker <h4 class="constants">Constants</h4> 1350*5e7646d2SAndroid Build Coastguard Worker <table class="list"><tbody> 1351*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_EDGE_BOTTOM </th> <td class="description">Leading edge is the bottom of the page</td></tr> 1352*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_EDGE_LEFT </th> <td class="description">Leading edge is the left of the page</td></tr> 1353*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_EDGE_RIGHT </th> <td class="description">Leading edge is the right of the page</td></tr> 1354*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_EDGE_TOP </th> <td class="description">Leading edge is the top of the page</td></tr> 1355*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 1356*5e7646d2SAndroid Build Coastguard Worker <h3 class="enumeration"><a id="cups_jog_e">cups_jog_e</a></h3> 1357*5e7646d2SAndroid Build Coastguard Worker <p class="description">Jog attribute values</p> 1358*5e7646d2SAndroid Build Coastguard Worker <h4 class="constants">Constants</h4> 1359*5e7646d2SAndroid Build Coastguard Worker <table class="list"><tbody> 1360*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_JOG_FILE </th> <td class="description">Move pages after this file</td></tr> 1361*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_JOG_JOB </th> <td class="description">Move pages after this job</td></tr> 1362*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_JOG_NONE </th> <td class="description">Never move pages</td></tr> 1363*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_JOG_SET </th> <td class="description">Move pages after this set</td></tr> 1364*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 1365*5e7646d2SAndroid Build Coastguard Worker <h3 class="enumeration"><a id="cups_mode_e">cups_mode_e</a></h3> 1366*5e7646d2SAndroid Build Coastguard Worker <p class="description">cupsRasterOpen modes</p> 1367*5e7646d2SAndroid Build Coastguard Worker <h4 class="constants">Constants</h4> 1368*5e7646d2SAndroid Build Coastguard Worker <table class="list"><tbody> 1369*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_RASTER_READ </th> <td class="description">Open stream for reading</td></tr> 1370*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_RASTER_WRITE </th> <td class="description">Open stream for writing</td></tr> 1371*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_RASTER_WRITE_COMPRESSED <span class="info"> CUPS 1.3/macOS 10.5 </span></th> <td class="description">Open stream for compressed writing </td></tr> 1372*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_RASTER_WRITE_PWG <span class="info"> CUPS 1.5/macOS 10.7 </span></th> <td class="description">Open stream for compressed writing in PWG Raster mode </td></tr> 1373*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 1374*5e7646d2SAndroid Build Coastguard Worker <h3 class="enumeration"><a id="cups_order_e">cups_order_e</a></h3> 1375*5e7646d2SAndroid Build Coastguard Worker <p class="description">cupsColorOrder attribute values</p> 1376*5e7646d2SAndroid Build Coastguard Worker <h4 class="constants">Constants</h4> 1377*5e7646d2SAndroid Build Coastguard Worker <table class="list"><tbody> 1378*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_ORDER_BANDED </th> <td class="description">CCC MMM YYY KKK ...</td></tr> 1379*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_ORDER_CHUNKED </th> <td class="description">CMYK CMYK CMYK ...</td></tr> 1380*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_ORDER_PLANAR </th> <td class="description">CCC ... MMM ... YYY ... KKK ...</td></tr> 1381*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 1382*5e7646d2SAndroid Build Coastguard Worker <h3 class="enumeration"><a id="cups_orient_e">cups_orient_e</a></h3> 1383*5e7646d2SAndroid Build Coastguard Worker <p class="description">Orientation attribute values</p> 1384*5e7646d2SAndroid Build Coastguard Worker <h4 class="constants">Constants</h4> 1385*5e7646d2SAndroid Build Coastguard Worker <table class="list"><tbody> 1386*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_ORIENT_0 </th> <td class="description">Don't rotate the page</td></tr> 1387*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_ORIENT_180 </th> <td class="description">Turn the page upside down</td></tr> 1388*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_ORIENT_270 </th> <td class="description">Rotate the page clockwise</td></tr> 1389*5e7646d2SAndroid Build Coastguard Worker <tr><th>CUPS_ORIENT_90 </th> <td class="description">Rotate the page counter-clockwise</td></tr> 1390*5e7646d2SAndroid Build Coastguard Worker</tbody></table> 1391*5e7646d2SAndroid Build Coastguard Worker </div> 1392*5e7646d2SAndroid Build Coastguard Worker </body> 1393*5e7646d2SAndroid Build Coastguard Worker</html> 1394