B4J Programming Press on the image to return to the main documentation page.

jCoreExtras

Written by Martin Pearman

jCoreExtras wraps native java classes into B4J objects.
It wraps classes that are not (yet) part of the official B4J jCore.jar library.
My plan is to keep all newly wrapped native java objects in this single library,
this library can then be referenced by other libraries that require the wrapped java objects.
jCoreExtras can be found on GitHub at: https://github.com/warwound/jCoreExtras
You're welcome to contribute!

List of types:

BufferedImage
Dimension
Graphics2D
Point
Stub

BufferedImage


Events:

None

Members:


  CreateGraphics As Graphics2D

  GetPixel (X As Int, Y As Int) As Int

  GetSubImage (X As Int, Y As Int, Width As Int, Height As Int) As BufferedImage

  Height As Int [read only]

  Initialize (Width As Int, Height As Int, ImageType As Int)

  IsInitialized As Boolean

  TYPE_3BYTE_BGR As Int

  TYPE_4BYTE_ABGR As Int

  TYPE_4BYTE_ABGR_PRE As Int

  TYPE_BYTE_BINARY As Int

  TYPE_BYTE_GRAY As Int

  TYPE_BYTE_INDEXED As Int

  TYPE_CUSTOM As Int

  TYPE_INT_ARGB As Int

  TYPE_INT_ARGB_PRE As Int

  TYPE_INT_BGR As Int

  TYPE_INT_RGB As Int

  TYPE_USHORT_555_RGB As Int

  TYPE_USHORT_565_RGB As Int

  TYPE_USHORT_GRAY As Int

  Width As Int [read only]

Members description:

CreateGraphics As Graphics2D
GetPixel (X As Int, Y As Int) As Int
GetSubImage (X As Int, Y As Int, Width As Int, Height As Int) As BufferedImage
Height As Int [read only]
Initialize (Width As Int, Height As Int, ImageType As Int)
IsInitialized As Boolean
TYPE_3BYTE_BGR As Int
TYPE_4BYTE_ABGR As Int
TYPE_4BYTE_ABGR_PRE As Int
TYPE_BYTE_BINARY As Int
TYPE_BYTE_GRAY As Int
TYPE_BYTE_INDEXED As Int
TYPE_CUSTOM As Int
TYPE_INT_ARGB As Int
TYPE_INT_ARGB_PRE As Int
TYPE_INT_BGR As Int
TYPE_INT_RGB As Int
TYPE_USHORT_555_RGB As Int
TYPE_USHORT_565_RGB As Int
TYPE_USHORT_GRAY As Int
Width As Int [read only]

Dimension


Events:

None

Members:


  GetHeight As Double

  GetSize As Dimension

  GetWidth As Double

  Initialize (Width As Int, Height As Int)

  IsInitialized As Boolean

  SetSize (Dimension1 As java.awt.Dimension)

  SetSize2 (Width As Int, Height As Int)

  SetSize3 (Width As Double, Height As Double)

Members description:

GetHeight As Double
GetSize As Dimension
GetWidth As Double
Initialize (Width As Int, Height As Int)
IsInitialized As Boolean
SetSize (Dimension1 As java.awt.Dimension)
SetSize2 (Width As Int, Height As Int)
SetSize3 (Width As Double, Height As Double)

Graphics2D


Events:

None

Members:


  Color As java.awt.Color [write only]

  Dispose

  DrawImage (BufferedImage1 As java.awt.image.BufferedImage, BufferedImageOp1 As java.awt.image.BufferedImageOp, X As Int, Y As Int)

  FillRect (X As Int, Y As Int, Width As Int, Height As Int)

  IsInitialized As Boolean

Members description:

Color As java.awt.Color [write only]
Dispose
DrawImage (BufferedImage1 As java.awt.image.BufferedImage, BufferedImageOp1 As java.awt.image.BufferedImageOp, X As Int, Y As Int)
B4A note - pass Null as BufferedImageOp1 parameter.
FillRect (X As Int, Y As Int, Width As Int, Height As Int)
IsInitialized As Boolean

Point


Events:

None

Members:


  GetX As Double

  GetY As Double

  Initialize (X As Int, Y As Int)

  IsInitialized As Boolean

  Move (X As Int, Y As Int)

  Translate (DX As Int, DY As Int)

Members description:

GetX As Double
GetY As Double
Initialize (X As Int, Y As Int)
IsInitialized As Boolean
Move (X As Int, Y As Int)
Translate (DX As Int, DY As Int)

Stub


Events:

None

Members:


Members description:


Top