Modifier and Type | Origin and Description |
---|---|
public static BBXImage |
BBXImage.BBXImageFactory.createImageFromBBjImage(BBjImage p_image!)
Creates a BBXImage from a BBjImage |
public static BBXImage |
BBXImage.BBXImageFactory.createImageFromImage(Image p_image!)
Creates a BBXImage from a Java Image Object |
public static BBXImage |
BBXImage.BBXImageFactory.createImageFromImageIcon(ImageIcon p_image!)
Creates a BBXImage from a Java ImageIcon object |
public static BBXImage |
BBXImage.BBXImageFactory.createImageFromServerFile(BBjString p_serverFileName$)
Creates a BBXImage from a server file |
public static BBXImage |
BBXImage.BBXImageFactory.createImageFromURL(BBjString p_imageURL$)
Creates a BBXImage from a string represetatin of a URL |
public static BBXImage |
BBXImage.BBXImageFactory.createImageFromURL(URL p_imageURL!)
Creates a BBXImage from a URL |
public BBXImage |
BBXImage.BBXImage.addColorOverlay(BBjColor p_color!)
Method to overlay the BBXImage with a BBjColor (which usually has an alpha component) |
public BBXImage |
BBXImage.BBXImage.addColorOverlay(BBjNumber red, BBjNumber green, BBjNumber blue, BBjNumber opacity)
Method to overlay the BBXImage with a color (which usually has an alpha component) |
public BBXImage |
BBXImage.BBXImage.clone()
Method to get a copy of the BBXImage |
public BBXImage |
BBXImage.BBXImage.crop(BBjNumber p_x, BBjNumber p_y, BBjNumber p_w, BBjNumber p_h)
Method to crop the BBXImage to a specified rectangular region |
public BBXImage |
BBXImage.BBXImage.cropBackground()
Method to return the smallest image possible by cropping out the background of the original image using the top left pixel's color as the base background color to crop out. |
public BBXImage |
BBXImage.BBXImage.cropTransparent()
Method to return the smallest image possible by cropping out the transparent edges of the original image |
public BBXImage |
BBXImage.BBXImage.drawFilledOval(BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjNumber p_thickness, Color p_outlineColor!, Color p_fillColor!)
Method to draw an oval on the BBXImage's canvas, specifying the thickness of the line and the color/opacity of the line. Note that specifying the same value for the width and height results in a circle. |
public BBXImage |
BBXImage.BBXImage.drawFilledOval(BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjNumber p_thickness, BBjColor p_outlineColor!, BBjColor p_fillColor!, BBjNumber p_rotation)
Method to draw an oval on the BBXImage's canvas, specifying the thickness of the line and the color/opacity of the line. Note that specifying the same value for the width and height results in a circle. |
public BBXImage |
BBXImage.BBXImage.drawFilledOval(BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjNumber p_thickness, Color p_outlineColor!, Color p_fillColor!, BBjNumber p_rotation)
Method to draw an oval on the BBXImage's canvas, specifying the thickness of the line and the color/opacity of the line. Note that specifying the same value for the width and height results in a circle. |
public BBXImage |
BBXImage.BBXImage.drawFilledRect(BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjNumber p_thickness, Color p_outlineColor!, Color p_fillColor!)
Method to draw a rectangle on the BBXImage's canvas, specifying the thickness of the line and the color/opacity of the line. |
public BBXImage |
BBXImage.BBXImage.drawFilledRect(BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjNumber p_thickness, BBjColor p_outlineColor!, BBjColor p_fillColor!, BBjNumber p_rotation)
Method to draw a rectangle on the BBXImage's canvas, specifying the thickness of the line and the color/opacity of the line. |
public BBXImage |
BBXImage.BBXImage.drawFilledRect(BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjNumber p_thickness, Color p_outlineColor!, Color p_fillColor!, BBjNumber p_rotation)
Method to draw a rectangle on the BBXImage's canvas, specifying the thickness of the line and the color/opacity of the line. |
public BBXImage |
BBXImage.BBXImage.drawOval(BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjNumber p_thickness, Color p_color!)
Method to draw an oval on the BBXImage's canvas, specifying the thickness of the line and the color/opacity of the line. Note that specifying the same value for the width and height results in a circle. |
public BBXImage |
BBXImage.BBXImage.drawOval(BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjNumber p_thickness, BBjColor p_color!)
Method to draw an oval on the BBXImage's canvas, specifying the thickness of the line and the color/opacity of the line. Note that specifying the same value for the width and height results in a circle. |
public BBXImage |
BBXImage.BBXImage.drawOval(BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjNumber p_thickness, BBjNumber red, BBjNumber green, BBjNumber blue, BBjNumber opacity)
Method to draw an oval on the BBXImage's canvas, specifying the thickness of the line and the color/opacity of the line. Note that specifying the same value for the width and height results in a circle. |
public BBXImage |
BBXImage.BBXImage.drawOval(BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjNumber p_thickness, BBjNumber red, BBjNumber green, BBjNumber blue, BBjNumber opacity, BBjNumber p_rotation)
Method to draw an oval on the BBXImage's canvas, specifying the thickness of the line and the color/opacity of the line. Note that specifying the same value for the width and height results in a circle. |
public BBXImage |
BBXImage.BBXImage.drawRect(BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjNumber p_thickness, BBjColor p_color!)
Method to draw a rectangle on the BBXImage's canvas, specifying the thickness of the line and the color/opacity of the line. |
public BBXImage |
BBXImage.BBXImage.drawRect(BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjNumber p_thickness, Color p_color!)
Method to draw a rectangle on the BBXImage's canvas, specifying the thickness of the line and the color/opacity of the line. |
public BBXImage |
BBXImage.BBXImage.drawRect(BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjNumber p_thickness, BBjNumber red, BBjNumber green, BBjNumber blue, BBjNumber opacity)
Method to draw a rectangle on the BBXImage's canvas, specifying the thickness of the line and the color/opacity of the line. |
public BBXImage |
BBXImage.BBXImage.drawRect(BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjNumber p_thickness, BBjNumber red, BBjNumber green, BBjNumber blue, BBjNumber opacity, BBjNumber p_rotation)
Method to draw a rectangle on the BBXImage's canvas, specifying the thickness of the line and the color/opacity of the line. |
public BBXImage |
BBXImage.BBXImage.drawText(BBjString p_text$, BBjString p_foreColorHexString$, BBjString p_backColorHexString$, Font p_javaFont!, BBjNumber p_offsetX, BBjNumber p_offsetY, BBjNumber p_hAlign, BBjNumber p_vAlign)
Draws the specified text on the current BBXImage object. Multi-line strings are denoted by including a linebreak ($0A$) between the lines of text. |
public BBXImage |
BBXImage.BBXImage.flipHorizontally()
Method to flip the BBXImage horizontally |
public BBXImage |
BBXImage.BBXImage.flipVertically()
Method to flip the BBXImage vertically |
public BBXImage |
BBXImage.BBXImage.getSubimage(BBjNumber p_x, BBjNumber p_y, BBjNumber p_w, BBjNumber p_h)
Method to return a BBXImage that is a subimage defined by a specified rectangular region |
public BBXImage |
BBXImage.BBXImage.rotate(BBjNumber p_degrees)
Method to rotate the BBXImage The image will be rotated around the center point, and a positive rotation angle corresponds to rotating the image in a clockwise fashion. Note that the new image will be larger than the original image to avoid truncating rotated edges. |
public BBXImage |
BBXImage.BBXImage.roundBottomCorners(BBjNumber arcWidth, BBjNumber arcHeight)
Method to round the bottom corners (knockout) of the BBXImage given a cornerRadius |
public BBXImage |
BBXImage.BBXImage.roundCorners(BBjNumber arcWidth, BBjNumber arcHeight)
Method to round the corners (knockout) of the BBXImage given a cornerRadius |
public BBXImage |
BBXImage.BBXImage.roundTopCorners(BBjNumber arcWidth, BBjNumber arcHeight)
Method to round the top corners (knockout) of the BBXImage given a cornerRadius |
public BBXImage |
BBXImage.BBXImage.scale(BBjNumber p_width, BBjNumber p_height)
Method to scale the BBXImage given a width and height Note: This method of scaling uses the java.awt.Image::getScaledInstance() method with the Image.SCALE_AREA_AVERAGING rendering hint. |
public BBXImage |
BBXImage.BBXImage.scale(BBjNumber p_percentage)
Method to scale the BBXImage given a percentage |
public BBXImage |
BBXImage.BBXImage.scaleHeight(BBjNumber p_width)
Method to scale the BBXImage preserving the aspect ratio given the width |
public BBXImage |
BBXImage.BBXImage.scaleProportionally(BBjNumber p_maxDimension)
Method to scale the BBXImage preserving the aspect ratio given the maximum width or height dimension. This method is useful in the case where you'd like to resize the source image ensuring that it will maintain its original proportions and will fit within a square of a particular size. |
public BBXImage |
BBXImage.BBXImage.scaleProportionally(BBjNumber p_maxWidth, BBjNumber p_maxHeight)
Method to scale the BBXImage preserving the aspect ratio given the maximum width and height dimensions. This method is useful in the case where you'd like to resize the source image ensuring that it will maintain its original proportions and will fit within a rectangle of a particular size. |
public BBXImage |
BBXImage.BBXImage.scaleProportionallyAndResizeCanvas(BBjNumber p_maxWidth, BBjNumber p_maxHeight)
Method to scale the BBXImage preserving the aspect ratio given the maximum width and height dimensions, and then resize the canvas so that the image will be resized to the specified width and height. The original image will be centered in the final image and any extra space will be transparent. This method is useful in the case where you'd like to resize the source image ensuring that it will maintain its original proportions and will fit within a rectangle of a particular size. |
public BBXImage |
BBXImage.BBXImage.scaleProportionallyResizeCanvasAndSetImage(BBjNumber p_maxWidth, BBjNumber p_maxHeight, BBjImageCtrl p_imgCtrl!)
Method to scale the BBXImage preserving the aspect ratio given the maximum width and height dimensions, then resize the canvas so that the image will be resized to the specified width and height. The original image will be centered in the final image and any extra space will be transparent. The final image will then be used to set the contents of the specified BBjImageCtrl This method is useful in the case where you'd like to resize the an image ensuring that it will maintain its original proportions and will fit within a BBjImageCtrl of a particular size. |
public BBXImage |
BBXImage.BBXImage.scaleWidth(BBjNumber p_height)
Method to scale the BBXImage preserving the aspect ratio given the height |
public BBXImage |
BBXImage.BBXImage.scaleWithHints(BBjNumber p_width, BBjNumber p_height, HashMap p_renderingHintsMap!)
Method to scale the BBXImage given a width and height and HashMap of Graphics2D rendering hints Java's RenderingHints allow you to specify the interpolation method used when scaling the image. The possible values are:
Generally speaking, the interpolations values shown above range from quickest with poorest quality (VALUE_INTERPOLATION_NEAREST_NEIGHBOR) to slowest with best quality (VALUE_INTERPOLATION_BICUBIC). In practice, bilinear and bicubic interpolation produce results that are very similar. Bicubic will be slightly sharper than bilinear, with a bit more emphasis on edges. That translates to bicubic often being a better choice for image reduction, whereas blinear is usually better for image enlargement. Following is a short example showing how to use this method:
|
public BBXImage |
BBXImage.BBXImage.setBorder(BBjNumber borderSize, BBjColor color!)
Method to add a border to the BBXImage |
public BBXImage |
BBXImage.BBXImage.setBorder(BBjNumber borderSize, BBjNumber red, BBjNumber green, BBjNumber blue, BBjNumber opacity)
Method to add a border to the BBXImage |
public BBXImage |
BBXImage.BBXImage.setCanvasSize(BBjNumber p_width, BBjNumber p_height)
Method to resize the BBXImage's canvas, specifying transparent for the fill color. |
public BBXImage |
BBXImage.BBXImage.setCanvasSize(BBjNumber p_width, BBjNumber p_height, BBjColor p_color!)
Method to resize the BBXImage's canvas. If the canvas size is larger than the BBXImage's size, then the extra space will be filled with the specified color and the original image will be centered in the new canvas. If the canvas is smaller than the BBXImage then it will be centered and cropped to fit, resulting in the removal of the edges. |
public BBXImage |
BBXImage.BBXImage.setCanvasSize(BBjNumber p_width, BBjNumber p_height, BBjNumber red, BBjNumber green, BBjNumber blue, BBjNumber opacity)
Method to resize the BBXImage's canvas. If the canvas size is larger than the BBXImage's size, then the extra space will be filled with the specified color and the original image will be centered in the new canvas. If the canvas is smaller than the BBXImage then it will be centered and cropped to fit, resulting in the removal of the edges. |
public BBXImage |
BBXImage.BBXImage.setCornerWaterMark(BBXImage watermarkImage!, BBjNumber opacity, BBjNumber width, BBjNumber height, BBjNumber anchorPoint)
Method to add a watermark logo to the BBXImage |
public BBXImage |
BBXImage.BBXImage.setDescription(BBjString p_description$)
Method to set the description of the BBXImage |
public BBXImage |
BBXImage.BBXImage.setDropShadow(BBjNumber shadowSize, BBjNumber shadowOpacity, BBjNumber xOffset, BBjNumber yOffset)
Method to add a drop shadow to the BBXImage |
public BBXImage |
BBXImage.BBXImage.setFilterBlur(BBjNumber p_blurAmount)
Method to filter the BBXImage and increase the blurriness |
public BBXImage |
BBXImage.BBXImage.setFilterBrightness(BBjNumber p_fraction)
Method to adjust the brightness of the BBXImage |
public BBXImage |
BBXImage.BBXImage.setFilterContrast(BBjNumber p_fraction)
Method to adjust the contrast of the BBXImage |
public BBXImage |
BBXImage.BBXImage.setFilterGrayscale()
Method to filter the BBXImage and convert it to grayscale (completely desaturated) |
public BBXImage |
BBXImage.BBXImage.setFilterSharpen(BBjNumber p_sharpenAmount)
Method to filter the BBXImage and increase the sharpness |
public BBXImage |
BBXImage.BBXImage.setImageIcon(ImageIcon p_imageIcon!)
Method to set the ImageIcon for the BBXImage |
public BBXImage |
BBXImage.BBXImage.setOpacity(BBjNumber p_percentTransparent)
Method to set the transparency of the BBXImage |
public BBXImage |
BBXImage.BBXImage.setReflection(BBjNumber reflectionLength, BBjNumber reflectionOpacity, BBjNumber blurred, BBjNumber verticalSpace)
Method to add a reflection to the BBXImage |
Modifier and Type | Origin and Description |
---|---|
public BBXImage |
BBXImage.BBXImage.setCornerWaterMark(BBXImage watermarkImage!, BBjNumber opacity, BBjNumber width, BBjNumber height, BBjNumber anchorPoint)
Method to add a watermark logo to the BBXImage |