Methods' Details |
selectFont
void |
selectFont( |
[in] string |
sFontName, |
| [in] double |
size, |
| [in] boolean |
bold, |
| [in] boolean |
italic ); |
- Description
- Select a font.
This method selects the specified font (or a close substitute)
as the current font for text output.
- Parameter sFontName
- The name of the font (like e.g. Arial)
- Parameter size
- The size of the font (note that this is not the usual points
unit, but in the same coordinate system as the other rendering
operations - usually, device pixel).
- Parameter bold
- When true, selected font is bold.
- Parameter italic
- When true, selected font is italic
|
|
setPenColor
void |
setPenColor( |
[in] ::com::sun::star::util::Color |
nsRgbaColor ); |
- Description
- Sets the color used by line and text operations.
To disable stroking, simply set this color to something with
zero alpha (i.e. fully transparent).
- Parameter nsRgbaColor
- RGBA color tuple, interpreted in the sRGB color space.
|
|
setFillColor
void |
setFillColor( |
[in] ::com::sun::star::util::Color |
nsRgbaColor ); |
- Description
- Sets the fill color.
To disable filling, simply set this color to something with
zero alpha (i.e. fully transparent).
- Parameter nsRgbaColor
- RGBA color tuple, interpreted in the sRGB color space.
|
|
setRectClip
- Description
- Sets the clip to the specified rectangle.
|
|
setTransformation
- Description
- Set the current transform matrix.
|
|
drawPixel
- Description
- Sets a single pixel on the canvas.
|
|
drawLine
- Description
- Draws a line on the canvas.
|
|
drawRect
- Description
- Draws a rectangle on the canvas.
|
|
drawPolyPolygon
- Description
- Draws a poly-polygon on the canvas.
|
|
drawText
- Description
- Draws text on the canvas.
- Parameter aText
- Text to render. The text color is the current pen color.
- Parameter aOutPos
- Output position of the text. This is the left or right edge,
depending on nTextDirection. Output position is always
relative to the font baseline.
- Parameter nTextDirection
- A value from the TextDirection collection,
denoting the main writing direction for this string. The main
writing direction determines the origin of the text output,
i.e. the left edge for left-to-right and the right edge for
right-to-left text.
|
|
drawBitmap
- Description
- Draws the bitmap on the canvas.
- Parameter xBitmap
- Bitmap to render
- Parameter aLeftTop
- Left, top position of the bitmap on the destination canvas.
|
|
getDevice
- Description
- Request the associated graphic device for this canvas.
A graphic device provides methods specific to the underlying
output device capabilities, which are common for all canvases
rendering to such a device. This includes device resolution,
color space, or bitmap formats.
- Returns
- the associated XGraphicDevice.
|
|
getCanvas
- Description
- Query the underlying XCanvas.
- Returns
- the canvas interface this object is internally based
on.
|
|
getFontMetrics
- Description
- Request the font metrics of the current font.
- Returns
- the font metrics of the currently selected font.
|
|
getCurrentFont
- Description
- Retrieve currently selected font.
- Returns
- the font instance that's currently used for rendering
text.
|
|
getCurrentPenColor
::com::sun::star::util::Color |
getCurrentPenColor(); |
- Description
- Retrieve color currently used for lines.
|
|
getCurrentFillColor
::com::sun::star::util::Color |
getCurrentFillColor(); |
- Description
- Retrieve color currently used for fills
|
|
getCurrentClipRect
- Description
- Retrieve current clip rect
|
|
getCurrentTransformation
- Description
- Retrieve current transformation matrix
|
|
getCurrentViewState
- Description
- Retrieve view state.
- Returns
- the view state, that would generate matching output,
when rendering to an XCanvas instead.
|
|
getCurrentRenderState
RenderState |
getCurrentRenderState( |
[in] boolean |
bUseFillColor ); |
- Description
- Retrieve render state.
- Parameter bUseFillColor
- When true, the Color member of the RenderState is initialized
with the current fill color; when false, the current pen color
is used.
- Returns
- the render state, that would generate matching output,
when rendering to an XCanvas instead.
|
|
Copyright © 2000, 2013 LibreOffice contributors and/or their affiliates. All rights reserved.
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
The Document Foundation acknowledges all community members, please find more info at our website.