Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

save ImagePlus object as movie file



Hello.

I have a problem.
In my program code, the image(captured by QTJava) 
is displayed by ImageJ.
I want to save ImagePlus object(imp) sequence 
as movie file.
Please give me a advice.

The display part of priogram code is below.
Thanks.

----------------------
void displayFrame() {
 		gWorld.getPixMap().getPixelData().copyToArray(0,
pixelData, 0, pixelData.length);
		ImageProcessor ip = imp.getProcessor();
		int[] pixels = ip!=null?(int[])ip.getPixels():null;
		ImageWindow win = imp.getWindow();
		if (pixels==null || win==null || IJ.spaceBarDown()) {
			grabbing = false; 
			imp.setTitle("Untitled"); 
			return;
		}
		if (IJ.altKeyDown()) {
			IJ.setKeyUp(KeyEvent.VK_ALT);
			IJ.run("Add Slice");
		}
		if (intsPerRow!=width) {
			for (int i=0; i<height; i++){
			System.arraycopy(pixelData, i*intsPerRow, pixels,
i*width, width);
			}
		} else
		ip.setPixels(pixelData);
		imp.updateAndDraw();
		if (grabMode&&pixelData[0]!=0)
			{grabbing = false; imp.setTitle("Untitled"); return;}
		frame++;
		IJ.wait(10);
	}
------------------------------


--------------------------------------
STOP HIV/AIDS.
Yahoo! JAPAN Redribbon Campaign 2005
http://pr.mail.yahoo.co.jp/redribbon/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.