|
Smalltalk/X WebserverDocumentation of class 'ImageView': |
|
|
Class: ImageViewInheritance:Object | +--GraphicsContext | +--DeviceGraphicsContext | +--GraphicsMedium | +--DisplaySurface | +--SimpleView | +--View | +--ImageView | +--ColorBulletIndicator | +--ImageEditView
Description:
This View knows how to display a (bitmap-)image (or form).
You can display an image with:
ImageView openOn:anImageFileName
or:
ImageView openOnImage:anImage
or:
ImageView new image:anImage
i.e.
ImageView openOn:'../../goodies/bitmaps/gifImages/garfield.gif'
ImageView openOn:'../../goodies/bitmaps/SBrowser.xbm'
ImageView openOnImage:(Image fromFile:'../../goodies/bitmaps/gifImages/garfield.gif')
ImageView openOnImage:(Image fromFile:'../../goodies/bitmaps/SBrowser.xbm')
adjust:
controls how images are displayed;
can be one of:
#topLeft - image is displayed as usual
#center - image is shown centered
#fitBig - big images are shrunk to make it fit the view
#fitSmall - small images are magnified to make it fit the view,
#fit - all images are magnified to fit the view
Related information:
Image
Form
Class protocol:initialization queries-plugin startup
Instance protocol:accessing
Examples:|top imgView scrView| top := StandardSystemView new. top extent:300@300. imgView := ImageView new. imgView image:(Image fromFile:'../../goodies/bitmaps/gifImages/garfield.gif'). scrView := HVScrollableView forView:imgView. scrView origin:0@0 corner:1.0@1.0. top add:scrView. top open. |
|
|
ST/X 6.1.1; WebServer 1.620 at exept:8081; Mon, 21 May 2012 18:07:43 GMT
|