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.
|
|
Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.