jp.digitalmuseum.mr.service
インタフェース ImageProvider

すべてのスーパーインタフェース:
EventProvider, java.lang.Runnable, java.io.Serializable, Service
既知のサブインタフェースの一覧:
CoordProvider, HomographyCoordProvider
既知の実装クラスの一覧:
Camera, Capture, Hakoniwa, HomographyCoordProviderAbstractImpl

public interface ImageProvider
extends Service
Interface implemented by classes providing images in real-time.
作成者:
Jun KATO

入れ子のクラスの概要
static interface ImageProvider.ImageListener
           
 
メソッドの概要
 void addImageListener(ImageProvider.ImageListener listener)
           
 void drawImage(java.awt.Graphics g)
          Draw the current image in the specified graphics context.
 void drawImage(java.awt.Graphics g, int x, int y)
          Draw the current image in the specified graphics context and position.
 int getHeight()
          Get height of the captured image.
 java.awt.image.BufferedImage getImage()
          Get an image data as a BufferedImage object.
 byte[] getImageData()
          Get an image data as a BGR byte array.
 int getWidth()
          Get width of the captured image.
 boolean removeImageListener(ImageProvider.ImageListener listener)
           
 
インタフェース jp.digitalmuseum.mr.service.Service から継承されたメソッド
dispose, getAliveTime, getConfigurationComponent, getInterval, getName, getServiceGroup, isDisposed, isPaused, isStarted, pause, resume, setInterval, setServiceGroup, start, start, stop
 
インタフェース java.lang.Runnable から継承されたメソッド
run
 
インタフェース jp.digitalmuseum.mr.message.EventProvider から継承されたメソッド
addEventListener, removeEventListener
 
メソッドの詳細

getImageData

byte[] getImageData()
Get an image data as a BGR byte array.
戻り値:

getImage

java.awt.image.BufferedImage getImage()
Get an image data as a BufferedImage object.

getWidth

int getWidth()
Get width of the captured image.

getHeight

int getHeight()
Get height of the captured image.

drawImage

void drawImage(java.awt.Graphics g)
Draw the current image in the specified graphics context.
パラメータ:
g -

drawImage

void drawImage(java.awt.Graphics g,
               int x,
               int y)
Draw the current image in the specified graphics context and position.
パラメータ:
g -
x -
y -

addImageListener

void addImageListener(ImageProvider.ImageListener listener)

removeImageListener

boolean removeImageListener(ImageProvider.ImageListener listener)


Copyright by Jun KATO (arc@dmz) at https://mr.digitalmuseum.jp/