Changes between Version 12 and Version 13 of IconTutorial


Ignore:
Timestamp:
Dec 29, 2007, 1:23:29 PM (17 years ago)
Author:
cinc
Comment:

Example of wrong scaling

Legend:

Unmodified
Added
Removed
Modified
  • IconTutorial

    v12 v13  
    133133
    134134{{{
    135    Key name:             CairoCommands
    136    Data:                 <ctxt>save</><scale>0.01 0.01</><imgkey>OverlayImage # 1</><ctxt>restore</> 
     135   Key name: CairoCommands
     136   Data:     <ctxt>save</><scale>0.01 0.01</><imgkey>OverlayImage # 1</><ctxt>restore</> 
    137137}}}
    138138
     
    180180
    181181{{{
    182    Key name:             CairoCommands
    183    Data:                 <ctxt>save</><scale>0.015 0.015</><imgkey>OverlayImage # 0.5</><ctxt>restore</> 
     182   Key name: CairoCommands
     183   Data:     <ctxt>save</><scale>0.015 0.015</><imgkey>OverlayImage # 0.5</><ctxt>restore</> 
    184184}}}
    185185
     
    204204
    205205{{{
    206    Key name:             CairoCommands
    207    Data:                 <ctxt>save</><transl>0 0.2</><scale>0.01 0.01</><imgkey>OverlayImage # 1</><ctxt>restore</>
    208                          <ctxt>save</><transl>0.4 0.3</><scale>0.01 0.01</><imgkey>OverlayImage2 # 1</><ctxt>restore</>
     206   Key name: CairoCommands
     207   Data:     <ctxt>save</><transl>0 0.2</><scale>0.01 0.01</><imgkey>OverlayImage # 1</><ctxt>restore</>
     208             <ctxt>save</><transl>0.4 0.3</><scale>0.01 0.01</><imgkey>OverlayImage2 # 1</><ctxt>restore</>
    209209}}}
    210210
     
    229229
    230230{{{
    231    Key name:             CairoCommands
    232    Data:                 <ctxt>save</><transl>0 0.2</><scale>0.01 0.01</><imgkey>OverlayImage # 1</>
    233                                       <transl>0.4 0.3</><scale>0.01 0.01</><imgkey>OverlayImage2 # 1</><ctxt>restore</>
     231   Key name: CairoCommands
     232   Data:     <ctxt>save</><transl>0 0.2</><scale>0.01 0.01</><imgkey>OverlayImage # 1</>
     233                          <transl>0.4 0.3</><scale>0.01 0.01</><imgkey>OverlayImage2 # 1</><ctxt>restore</>
    234234}}}
    235235
    236236Using only one block of context save commands (which is pointless because no further painting is done) yields the following icon.
    237237
     238[[Image(source:/icon_tutorial/wrong_scaling.png, nolink)]]
     239
     240Where is the second overlay image gone?
     241