Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


:: com :: sun :: star :: graphic ::

service GraphicDescriptor
Description
This service describes all graphic properties that are available via the ::com::sun::star::beans::XPropertySet interface
See also
XPropertySet

Exported Interfaces - Summary
::com::sun::star::beans::XPropertySet

The property interface by which the properties of all supported services are exchanged

Properties' Summary
byte
GraphicType
The type of the graphic  
string
MimeType
The MimeType of the loaded graphic  
::com::sun::star::awt::Size
SizePixel
[ OPTIONAL ]
The Size of the graphic in pixel.  
::com::sun::star::awt::Size
Size100thMM
[ OPTIONAL ]
The Size of the graphic in 100th mm.  
byte
BitsPerPixel
[ OPTIONAL ]
The number of bits per pixel used for the pixel graphic  
boolean
Transparent
[ OPTIONAL ]
Indicates that it is a transparent graphic  
boolean
Alpha
[ OPTIONAL ]
Indicates that it is a pixel graphic with an alpha channel  
boolean
Animated
[ OPTIONAL ]
Indicates that it is a graphic that consists of several frames that can be played as an animation  
Exported Interfaces - Details
::com::sun::star::beans::XPropertySet
Description
The property interface by which the properties of all supported services are exchanged
Properties' Details
GraphicType
byte GraphicType;
Description
The type of the graphic
See also
GraphicType
MimeType
string MimeType;
Description
The MimeType of the loaded graphic

The mime can be the original mime type of the graphic source the graphic container was constructed from or it can be the internal mime type image/x-vclgraphic, in which case the original mime type is not available anymore

Currently, the following mime types are supported for loaded graphics:

  • image/bmp
  • image/gif
  • image/jpeg
  • image/x-photo-cd
  • image/x-pcx
  • image/png
  • image/tiff
  • image/x-xbitmap
  • image/x-xpixmap
  • image/x-portable-bitmap
  • image/x-portable-graymap
  • image/x-portable-pixmap
  • image/x-cmu-raster
  • image/x-targa
  • image/x-photoshop
  • image/x-eps
  • image/x-dxf
  • image/x-met
  • image/x-pict
  • image/x-sgf
  • image/x-svm
  • image/x-wmf
  • image/x-sgv
  • image/x-emf
  • image/x-vclgraphic
SizePixel
::com::sun::star::awt::Size SizePixel;
Usage Restrictions
optional
Description
The Size of the graphic in pixel.

This property may not be available in case of vector graphics or if the pixel size can not be determined correctly for some formats without loading the whole graphic

Size100thMM
::com::sun::star::awt::Size Size100thMM;
Usage Restrictions
optional
Description
The Size of the graphic in 100th mm.

This property may not be available in case of pixel graphics or if the logical size can not be determined correctly for some formats without loading the whole graphic

BitsPerPixel
byte BitsPerPixel;
Usage Restrictions
optional
Description
The number of bits per pixel used for the pixel graphic

This property is not available for vector graphics and may not be available for some kinds of pixel graphics

Transparent
boolean Transparent;
Usage Restrictions
optional
Description
Indicates that it is a transparent graphic

This property is always true for vector graphics. The status of this flag is not always clear if the graphic was not loaded at all, e.g. in case of just querying for the GraphicDescriptor.

Alpha
boolean Alpha;
Usage Restrictions
optional
Description
Indicates that it is a pixel graphic with an alpha channel

The status of this flag is not always clear if the graphic was not loaded at all, e.g. in case of just querying for the GraphicDescriptor

Animated
boolean Animated;
Usage Restrictions
optional
Description
Indicates that it is a graphic that consists of several frames that can be played as an animation

The status of this flag is not always clear if the graphic was not loaded at all, e.g. in case of just querying for the GraphicDescriptor


 
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache and the Apache feather logo are trademarks of The Apache Software Foundation. OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.