Package guidoengine
Class guidoscore
- java.lang.Object
-
- guidoengine.guidoscorebase
-
- guidoengine.guidoscore
-
public class guidoscore extends guidoscorebase
The main score API.
Add extended API to draw score on a bitmap with a native device and draw the bitmap in a java.awt.Graphics object.
-
-
Field Summary
-
Fields inherited from class guidoengine.guidoscorebase
fARHandler, fGRHandler, kEventsBB, kMeasureBB, kNoBB, kPageBB, kStavesBB, kSystemsBB, kSystemsSliceBB
-
-
Constructor Summary
Constructors Constructor Description guidoscore()
guidoscore(long ar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
Draw(java.awt.Graphics g, int top, int left, int w, int h, guidodrawdesc desc, guidopaint area, java.awt.Color color)
Draws the score.int
Draw(java.awt.Graphics g, int w, int h, guidodrawdesc desc, guidopaint area)
Draws the score.int
Draw(java.awt.Graphics g, int w, int h, guidodrawdesc desc, guidopaint area, java.awt.Color color)
Draws the score.int
GetBitmap(int[] dst, int w, int h, guidodrawdesc desc, guidopaint area, java.awt.Color color)
Draws the score into a bitmap.-
Methods inherited from class guidoengine.guidoscorebase
AbstractExport, AR2GR, AR2GR, AR2MIDIFile, BinaryExport, close, CloseParser, CloseStream, CountVoices, DrawBoundingBoxes, File2AR, FindEventPage, FindPageAt, FreeAR, FreeGR, getARHandler, GetDrawBoundingBoxes, GetDuration, GetMap, GetPageCount, GetPageDate, GetPageFormat, GetPageMap, GetRAWStaffMap, GetRAWSystemMap, GetRAWVoiceMap, GetStaffMap, GetStream, GetSystemCount, GetSystemMap, GetTimeMap, GetVoiceMap, GR2SVG, GR2SVG, Init, MarkVoice, OpenParser, OpenStream, ParseFile, ParserGetErrorCode, ParseString, ResetStream, ResizePageToMusic, Stream2AR, String2AR, SVGExport, SVGExportWithFontSpec, UpdateGR, UpdateGR, WriteStream
-
-
-
-
Method Detail
-
GetBitmap
public final int GetBitmap(int[] dst, int w, int h, guidodrawdesc desc, guidopaint area, java.awt.Color color)
Draws the score into a bitmap. Actually, draws the score to an offscreen that is next copied to the destination bitmap. It use native system of the device, so it's not implemented if a the GuidoEngine library is build with INDEPENDENSVG option, like in android platform.- Parameters:
dst
- the destination bitmap ARGB arrayw
- the bitmap widthh
- the bitmap heightdesc
- the score drawing descriptorarea
- clipping descriptioncolor
- the color used to draw the score- Returns:
- a Guido error code.
- See Also:
guidodrawdesc
,guidopaint
-
Draw
public int Draw(java.awt.Graphics g, int w, int h, guidodrawdesc desc, guidopaint area)
Draws the score. Drawing the score should be typically called from the paint method of a Canvas. It use native system of the device, so it's not implemented if a the GuidoEngine library is build with INDEPENDENSVG option.- Parameters:
g
- a Graphicsw
- the desired drawing widthh
- the desired drawing heigthdesc
- the score drawing descriptorarea
- clipping description- Returns:
- a Guido error code.
- See Also:
guidodrawdesc
,guidopaint
-
Draw
public int Draw(java.awt.Graphics g, int w, int h, guidodrawdesc desc, guidopaint area, java.awt.Color color)
Draws the score. Drawing the score should be typically called from the paint method of a Canvas. It use native system of the device, so it's not implemented if a the GuidoEngine library is build with INDEPENDENSVG option.- Parameters:
g
- a Graphicsw
- the desired drawing widthh
- the desired drawing heightdesc
- the score drawing descriptorarea
- clipping descriptioncolor
- the color used to draw the score- Returns:
- a Guido error code.
- See Also:
guidodrawdesc
,guidopaint
-
Draw
public int Draw(java.awt.Graphics g, int top, int left, int w, int h, guidodrawdesc desc, guidopaint area, java.awt.Color color)
Draws the score. Drawing the score should be typically called from the paint method of a Canvas. It use native system of the device, so it's not implemented if a the GuidoEngine library is build with INDEPENDENSVG option.- Parameters:
g
- a Graphicstop
- the top coordinate to begin to draw the imageleft
- the left coordinate to begin to draw the imagew
- the desired drawing widthh
- the desired drawing heightdesc
- the score drawing descriptorarea
- clipping descriptioncolor
- the color used to draw the score- Returns:
- a Guido error code.
- See Also:
guidodrawdesc
,guidopaint
-
-