Methods' Summary |
getSize |
Query the size of the bitmap. |
hasAlpha |
Query transparency status of the bitmap. |
getScaledBitmap |
Query a scaled copy of the original bitmap.
|
Methods' Details |
getSize
- Description
- Query the size of the bitmap.
This method queries the bitmap size in pixel.
- Returns
- the bitmap size in pixel.
|
|
hasAlpha
- Description
- Query transparency status of the bitmap.
The method checks, whether the bitmap contains any alpha
information. The same information is also available at the
XColorSpace associated with this bitmap, though
much easier to access here (the color space then has a
component flagged
ColorComponentTag::ALPHA).
- Returns
- true, if the bitmap has alpha data, or false if
not.
|
|
getScaledBitmap
- Description
- Query a scaled copy of the original bitmap.
- Parameter newSize
- Requested size of the new bitmap. Both of the two size
components must be greater than zero.
- Parameter beFast
- When set to true, this parameter advises getScaledBitmap to
use the fastest available algorithm to scale the bitmap, which
might cause visible artifacts.
- Returns
- the new scaled bitmap.
- Throws
- com::sun::star::lang::IllegalArgumentException
if the size components are outside the specified range.
- Throws
- VolatileContentDestroyedException
if the contents of a volatile bitmap have been destroyed, and
thus cannot be read to generate the scaled bitmap.
|
|
Top of Page
Copyright © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.