java.lang.Object
java.awt.image.FilteredImageSource
- All Implemented Interfaces:
- ImageProducer
- See Also:
- Source Code
public void addConsumer(ImageConsumer ic)
- See Also:
- ImageProducer
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public FilteredImageSource(ImageProducer orig,
ImageFilter imgf)
- See Also:
Component.createImage(java.awt.image.ImageProducer)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[418]Cut Image
By marcinka2205 { at } tlen { dot } pl on 2004/11/14 15:38:21 Rate
public void cutImage ( ) {
fields = new Field [ elementsX ] [ elementsY ] ;
// get ImageProducer from the image
java.awt.image.ImageProducer imageProd = image.getSource ( ) ;
for ( int i=0; i < elementsX; i++ )
for ( int j=0; j < elementsY; j++ ) {
java.awt.image.CropImageFilter crop = new java.awt.image.CropImageFilter ( i*picWidth,j*picHeight,picWidth,picHeight ) ;
fields [ i ] [ j ] = new Field ( getToolkit ( ) .createImage ( new java.awt.image.FilteredImageSource ( imageProd,crop ) ) ) ;
}
fields [ 0 ] [ 0 ] = new Field ( null ) ;
nullX = 0; nullY = 0;
}
public boolean isConsumer(ImageConsumer ic)
- See Also:
- ImageProducer
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void removeConsumer(ImageConsumer ic)
- See Also:
- ImageProducer
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void requestTopDownLeftRightResend(ImageConsumer ic)
- See Also:
- ImageProducer
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void startProduction(ImageConsumer ic)
- See Also:
- ImageProducer
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples