# Rendered Image Factory

###### Identifier:

org.eclipse.gmf.runtime.draw2d.ui.render.renderedImageFactory

###### Since:

GMF 1.0

###### Description:

This extension point is used to define an image type to allow auto detection of an image buffer. The image type can instantiate an (`RenderedImage`) which can subsequently be rendered using the (`ScalableImageFigure`) class. In the extension point, the client points to a factory class which they create implementing the (`RenderedImageType`) interface. The (`RenderedImageFactory`) static class calls the extension point to compile a list of image types to query. When the client calls the (`RenderedImageFactory`) to retrieve the proper (`RenderedImage`), it will ask each type whether it can handle the particular image buffer. If the image buffer is auto-detected by the type, then the type will instatiate and return a (`RenderedImage`) object.

###### Configuration Markup:

<!ELEMENT extension (factory)>

<!ATTLIST extension

point CDATA #REQUIRED

id CDATA #IMPLIED

name CDATA #IMPLIED

>

<!ELEMENT factory EMPTY>

<!ATTLIST factory

class CDATA #REQUIRED

>

- class -

###### Examples:

An extension to the renderedImageFactory would require the implementation of the (`RenderedImageType`) interface. The following is an example plugin.xml entry for a renderedImageFactory extension:

        <extension
         point="org.eclipse.gmf.runtime.draw2d.ui.render.renderedImageFactory">
          <factory
            class="org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.svg.SVGImageType">
          </factory>
     </extension>

###### Supplied Implementation:

[Enter information about supplied implementation of this extension point.]

Copyright (c) 2006 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html