Ignore:
Timestamp:
Dec 27, 2011 2:46:12 PM (13 years ago)
Author:
gah
Message:

sync with trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/gui/scripts/imageentry.tcl

    r1932 r2745  
    176176    set fmt [$_owner xml get $_path.convert]
    177177    if {"" != $fmt && "" != $_imh} {
    178         switch -- $fmt {
    179             "pgm" - "ppm" {
    180                 $_imh export pbm -data bytes
    181             }
    182             "jpeg" {
    183                 $_imh export jpg -data bytes
    184             }
    185             "tiff" {
    186                 $_imh export tif -data bytes
    187             }
    188             "bmp" - "png" - "xbm" - "xpm" {
    189                 $_imh export $fmt -data bytes
    190             }
    191             default {
    192                 error "unknown image format \"$fmt\""
    193             }
    194         }
     178        switch -- $fmt {
     179            "pgm" - "ppm" {
     180                $_imh export pbm -data bytes
     181            }
     182            "jpeg" {
     183                $_imh export jpg -data bytes
     184            }
     185            "tiff" {
     186                $_imh export tif -data bytes
     187            }
     188            "bmp" - "png" - "xbm" - "xpm" {
     189                $_imh export $fmt -data bytes
     190            }
     191            default {
     192                error "unknown image format \"$fmt\""
     193            }
     194        }
    195195    }
    196196    return $bytes
Note: See TracChangeset for help on using the changeset viewer.