ij.plugin
Class BMP_Writer

java.lang.Object
  extended by ij.plugin.BMP_Writer
All Implemented Interfaces:
PlugIn

public class BMP_Writer
extends java.lang.Object
implements PlugIn

Implements the File/Save As/BMP command. Based on BMPFile class from http://www.javaworld.com/javaworld/javatips/jw-javatip60-p2.html


Field Summary
(package private)  ImagePlus imp
           
 
Constructor Summary
BMP_Writer()
           
 
Method Summary
 void run(java.lang.String path)
          This method is called when the plugin is loaded.
 void saveBitmap(java.lang.String parFilename, java.awt.Image parImage, int parWidth, int parHeight)
           
(package private)  void writeImage(ImagePlus imp, java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imp

ImagePlus imp
Constructor Detail

BMP_Writer

public BMP_Writer()
Method Detail

run

public void run(java.lang.String path)
Description copied from interface: PlugIn
This method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.

Specified by:
run in interface PlugIn

writeImage

void writeImage(ImagePlus imp,
                java.lang.String path)
          throws java.lang.Exception
Throws:
java.lang.Exception

saveBitmap

public void saveBitmap(java.lang.String parFilename,
                       java.awt.Image parImage,
                       int parWidth,
                       int parHeight)
                throws java.lang.Exception
Throws:
java.lang.Exception