Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Runtime

org.eclipse.gmf.runtime.draw2d.ui.render.factory
Interface RenderedImageType


public interface RenderedImageType

This interface allows the RenderedImageFactory to auto-defect an image type through an extension point. Implementors need to know how to auto-defect the type of image given a byte buffer representing the contents of the image.


Method Summary
  RenderedImage autoDetect (byte[] buffer, org.eclipse.gmf.runtime.draw2d.ui.render.internal.factory.RenderedImageKey key)
           
 

Method Detail

autoDetect


RenderedImage autoDetect(byte[] buffer,
                         org.eclipse.gmf.runtime.draw2d.ui.render.internal.factory.RenderedImageKey key)
Parameters:
buffer - the byte[] array that is the contents of the image file. This is used as the input in order to detect the type of file format.
key - the RenderedImageKey that defines the parameters of how to render the particular image.
Returns:
a RenderedImage if the buffer was auto-detected as being this type. null is returned if the buffer stream is not detected as this type.

Runtime

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire