图形
动画
区域
剪辑
颜色
Changing drawing colors.
Drawing with Color
Get Transparency Mode Of Color
Set Graphics Color
Drawing with a cyclic and non-cyclic Gradient Color
get OpenGL Color
calculate Color from primary and secondary color and ratio
get Grey Color
distance between two color
get Color in Shape
get Css Color
returns a r g b a float array that openGL likes
Gets a color composed of the specified channels.
Returns the green channel of the color
get Appointment Color
Take the integer part of a number and put it in [0, 255] That is to say if integer<0, return 0.
mix Colors
random Color
Color from AARRGGBB
random Color and return Color value
seeded Color
towards Gray Color
Return the "distance" between two colors.
get Nice Colors
add one color to another color
Fills given rectangle using top-down gradient fill of specified colors
get Color Hue
distance between two Color value
add Colors
scale Color
get Random Color Code
Returns a Color for an object that is determined by the object's hash code.
get Mixed Color
blur Color
Converts the colour to an integer value.
get Background Color Random
get Saturation
adjust Color By
adjust Color Components Towards
adjust Color Towards by amount
average Color Difference
Get random color using Golden Ratio
Computes an appropriate foreground color (either white or black) for the given background color.
Returns a new color equal to the old one, except the saturation is set to the new value.
Converts the given FX color to awt color.
set Saturation
merge Colors
Creates a color that corresponds to the specified values.
Extracts the green component from color .
get Fraction Color
convert To Binary Colors
Gets the "distance" between two colors, returning between 0 and 255.
Checks if two colors are within a tolerance.
get Contrast Color
parse Color
distance of two color
get Random Color
are Colors Within Tolerance
find All Color Within Tolerance
find Color Within Tolerance
Gets the "distance" between two colors, their components assumed to be points in 3D space ranging from 0.0 to 1.0.
Converts a float value between 0f and 1f to an int value between 0 and 255
get Random Color by base color
average Color
Bounds a color parameter to between 0 and 255 (both inclusive).
format Color
Computes the luminance difference of two colors (a value in range 0-255).
Computes the luminance value of a color (a value in range 0-255).
Tests whether the given colors are contrasting colors, according to the test described in the W3C ac
Color to Byte
Finds the closest hue possible to given color.
inverse Color
Gets the java color corresponding to the given CSS color name.
Mixes two colour by the provided percentages
Shades a colour by the given amount (0-1).
convert Color To Gray
Computes cosine for some angle represented in degrees [0, 360].
Calculates the hue component based on R,G,B
get Randomized Maximum Contrast Color List
different Color
get Green from int color
get Color Difference
Multiplies each of component of colour with amount and divides the result by 256.
Returns white or black text depending on the background.
paint Gradient
get Gradient Color
get Opaque Mask
brighter Color
darker Color
draw Gradient
get Red Green Gradient
get Red Green Gradient Html
Converts a colour to it's RGB hex code
set Alpha Value
saturate Color
Create a new ColorModel with it's alpha pre multiplied state
Adds a Color argument to the drawChars method of java.awt.Graphics.
Calls g.drawString(s, x, y) after setting the color to c.
translucent Color
Converts a string into a Color object.
get String To Color Map
Change Color Transparency
random Bright Color
make Transparent Color
Blends two colors and returns the result
Converts the color into a Hex representation suitable for HTML color attributes.
Creates a copy of the given color with the specified transparency
Checks whether the two colors are similar for a given tolerance (in the sense of a distance between the RGB values).
Lighten up a color.
Darken a color.
Converts a color into a String like #RRGGBB.
Converts a color into a String like "255,0,0,255" (red,green,blue,alpha).
Converts a color into a String like 255,0,0.
Compares the given color to the 12 main colors and returns the name (e.g.
This is a weaker version of Color#brighter() Uses a factor closer to 1.
Fades the color by multiplying the saturation value by 0.5 and the brightness by 1.3.
Parses a hex color string (e.g. #FF0000 or FF0000)
invert Color
Attempts to convert the given string to a color.
Creates a new brighter version of a color by blending it with white.
Creates a new darker version of a color by blending it with black.
get Color Steppers
set Color Alpha
Compute a color in between the two given colors
Returns a mixed color from color c1 and c2.
Paints border glow over the given clip Shape with the given glow high and low colors and the given glowWidth.
Gets a color that "highlights" a given color.
argb to Color
Creates a new Color that is a brighter version of this Color.
Creates a new color with the hue taken from color c, but adjusted in brightness to match the desired
Creates a new Color that is a darker version of this Color.
Color To Integer
Integer To Color
Creates an array of color values.
Creates a color object.
Creates a color that is the darker version of the color parameter c.
Returns a value between 0 and 255 which represents the gray value of the color parameter.
Returns a color value which is the media between the colors c1 and c1
Returns a gray version of the color parameter c, which means all parts (r,g,b) do have the same value.
Snaps the color value within the byte range (0-255)
Gets a related color, based on a factor amount.
Computes several visually distinct colors such that they are equally spaced apart in the HSB color space.
Based on the differences of hue and perceived brightness of foreground color foreground and backgrou
This is a color's perceived brightness by the human eye
This method can be used to retrieve a rectangular image filled with a continuous colour variation.
Get the lightness associated to the given Color .
Creates a new color definition based on hue (0-360), saturation (0-100), and relative value (0-100; usually 75-100).
Helper to simplify creation of translucent colors
颜色透明度
颜色混合
颜色暗
十六进制颜色
颜色HSB
HTML颜色
颜色反转
颜色的光
RGB颜色
How to create a custom color using red, green and blue (RGB) components
Convert RGB To HSB Color
Get Red, Green, and Blue (RGB) Components From Color
Convert HSB To RGB Color
Filtering the RGB Values in an Image
Converting Between RGB and HSB Colors
Brightening or Darkening an RGB Buffered Image
HSV color value to RGB color value
mask Color ARGB Transparency
Color rgb To HSV Color
Color rgb To Normal RGB Color
Convert an RGB color value to a grayscale from 0 to 100.
Gets whether or not the given rgb values are closer in distance to black than white.
Converts a scalar normalized to de range [0:1] into a long rainbow of rgba values.
Converts a scalar normalized to de range [0:1] into a short rainbow of rgba values.
Composes two colors with the ARGB format
make RGB Light Value
hex to RGBA color, support "RGB, RGBA".
Color to ARGB
Color to RGBA
Convert a HSV color value to RGB colorspace.
Returns the blue component in the range 0-255 in the default sRGB space.
Returns the green component in the range 0-255 in the default sRGB space.
Returns the red component in the range 0-255 in the default sRGB space.
blend RGB Colors
Get the alpha value of a 32-bit ARGB color
Get 32 bit ARGB value based ints representing r,g, b, and a each in range (0-255)
Transform color c into a 32 bit ARGB value
Get the RGB colors from a RGB color value and store into an array (ignores alpha)
Get the color from a ARGB color value
Get the 32 bit grayscale ARGB value of gray (0-255)
Get the 32 bit grayscale rgb value of gray (0-255) ignoring alpha
Get 32 bit rgb value (ignoring alpha) based ints representing r,g and b each in range (0-255)
get RGBA Color
Returns a java.awt.Color by reading the RGB values from a hexadecimal string of format #RRGGBB
color To RGB
rgb To Color
Return a greyscale rgb value 0-FF using NTSC color luminance algorithm the alpha component is set to 0xFF.
Converts a colour to hex rgb notation.
When you have RGB input but need a gray result.
Convert a color to an RGBA value.
Convert a color to an RGB value.
Convert an RGB (or RGBA) value back to a Color .
Computes "middle" color in terms of rgb color space.
Get hex from RGB
Get HSB Color from RGB
hsv To Rgb
Color from RGB
hex To Rgb
Converts a HSV array back to an RGB array.
Converts an RGB array to an HSV array
Creates a String that represents the supplied color as a hex-value RGB triplet, including the "#".
Gets the complementary color to a given rgb set.
get Blue From RGB
HSB Color to RGB
Creates a new Color with RGB from color and the alpha value of alpha
Inverts a color (for each i in RGB, changes i to 255-i).
Calculates the Manhattan distance of two colors in the RGB color space (a value in range 0-(255*3)).
Return ARGB values in int array
Returns the ARGB color with inverted alpha channel.
Returns the opacity component of the ARGB color as a decimal format.
Returns the RGB equivalent of a given HSL (Hue/Saturation/Luminance) color.
hue RGB
Returns the HSL (Hue/Saturation/Luminance) equivalent of a given RGB color.
Converts a color's RGB presentation to a textual hexadecimal representation.
convert RGB Color to YUV
get Color RGB
Converts the color index B-V to RGB model.
Converts an HSL color value to RGB.
Converts an RGB color value to HSL.
get Green From RGB
get Alpha From RGB
get Red From RGB
get RGB Int
Returns the RGBA equivalence for named colors
Returns a copy of the rgb colour brightened up by the given amount.
Converts the specified rgb values to a hexadecimal representation.
get Blue from int value Color
get Green from int value Color
get Red from int value Color
Returns the blue channel of the color
Get the gray value by taking the average R, G and B values grey = (red + green + blue)/3
Get the gray value using the luminance(brightness) formula intensity = 0.2989red + 0.5870 green + 0.1140*blue
Returns a CSS friendly color in #RRGGBB format, where RR, GG, and BB are the red, green, and blue va
Get blue from hex Color
Extracts the blue component from color .
Decodes a color of the form #hhhhhhhh or #hhhhhh, (for example, #39F80D8C, or #9A67E9), where each t
get Blue from int color
Computes a 20-bit lighting word, containing red, green, blue, and brightness settings.
Retrieving a Predefined Color by Name
Converts a scalar normalized to de range [0:1] into a yellow to red map.
Returns the red channel of the color
Creates a new Paint that is a checkered effect using the colors Color#GRAY gray and Color#WHITE .
Extracts the red component from color .
Convert pixels from java default ABGR int format to byte array in ARGB format.
Convert pixels from java default ARGB int format to byte array in ABGR format.
Re-conversion of the human readable RGB representation back to a Color : if the given text matches t
parse RGB Color
filter RGB
YUV to RGB
Gets the intensity of a given rgb 0xFF is to get the last bit blue value
Derives a color from another color by linearly shifting its blue, green, and blue values.
Brightens each of the RGB components of color by the specified factor.
from Normalized RGBA
from Normalized RGB
from RGBA
from RGB
to Normalized RGBA
to Normalized RGB
to RGBA
Convert RGB color model to a Color object
Convert RGB color model to a hexidecimal (represented as an integer) format
blur an image in RGB color space using its nearest 8 pixels
Creates an intermediate color between color c1 and color c2 in the RGB color space.
Gets rgba() string from SAC rgba LexicalUnit value
Returns RGBA from a HEX string (# should not be included)
Converts SAC HSLA (or HSL) LexicalUnit value to RGBA
Returns rgba() string from SAC rgb LexicalUnit value
RGB to HSV
HSL stands for hue, saturation, and lightness, and is a cylindrical representation of RGB values.
Extract the hue component (HSL color space) from a RGB color
get Blue
Given the Color, get the red, green and blue components.
int Color to Blue
Color to Green
Color to Red
get Green
get Red
颜色的字符串
Dimension
字体
GlyphVector
Gradient
图形
GraphicsDevice
OpenGL
Paint
像素
打印
屏幕
文本
纹理
变换
形状
角度
弧度
曲线
点
椭圆
行
Draw lines with java.awt.Graphics
Draw random lines
Draw Line with java.awt.Graphics
Graphics draw Line
Graphics draw Thick Line
Returns the angle of rotation (in radians) for the specified line.
Creates and returns a line that is perpendicular to the specified line.
Returns the length of the line.
calculate the the angle of lines
length of Line2D
distance by Line2D
intersect Line2D and Shape
middle Line2D
calculate for checking whether the 3 points is upon on line
Draws a Horizontal line using the z-buffer algorithm
Draws a line using the z-buffer algorithm
render JComponent By Line Graphics
draw Dashed Axis
draw Line Dashed
create Paint For Line
Given a line formed by points Point1 and Point2, returns the point at a given distance from the Poin
Given a line formed by points Point1 and Point2, returns the length of the line.
Given the coordinates of the start and end of a line, returns the angle in radians of the line
Draws a line from (x1, y1) to (x2, y2) using the specified pen thickness.
get Line Line Intersection
This will draw a paragraph centered in a box where drawing each line either starts at the bottom or top.
paint Line
draw Optimized Line
get Adjacent Line
Linearly blends two colors with a defined weight.
Returns the outline for the specified text using the specified font and line width.
draw Multiline String
draw Thick Line
The Chop box Anchor's location is found by calculating the intersection of a line drawn from the cen
Draws a line with a specified thickness
draw Affine Texture Scan Line
draw Flat Scan Line
Draw a multi-line text
Get bounds of a multi-line text
get Point To Line Distance
draw Spline
Given a single point, p, and a line segment, which point along the line segment is nearest to p.
find Intersection Of Two Lines
Determines the intersection of two line segments, if one exists.
Determines the intersection of two lines, where one line is defined by a single point and a rotation in radians.
Determines the intersection of two lines, if one exists.
Gets the straight line distance between the pair of points {(x,y),(x1,y1)}.
Given two points {(x1,y1),(x2,y2)} returns {m,b} from the equation y = mx + b for a line which passe
Given a line segment the rotation (from a pointing straight up position) in radians of that line.
draw Line
draw Dashed Line
Returns a Line2D indexed by pos.
Creates a region surrounding a line segment by 'widening' the line segment.
draw Shaded Line
Given an offset, returns the offset where the line ends.
Given an offset, returns the offset where the line begins.
draw Grid
椭圆形
路径
点
多边形
矩形
The Rectangle Class
Drawing lines, rectangles and ovals.
Draw 3D Rectangle and Square
Draw Rounded Corner Rectangle and Square
Fill Rectangle & Square
Returns the dimensions of the smallest rectangle that could contain the supplied points.
expand Rectangle2D
Get Rectangle2D low left corner
get Rectangle2D low right corner
Rectangle2D From Center Point
get Rectangle2D upper left corner
get Rectangle2D upper right corner
Calculates a rectangle into two points, where as the points are handled as the diagonal vector.
center In Rectangle
fit Rectangle to another Rectangle
scale Rectangle
Rectangle r1 is below Rectangle r2
Rectangle r1 is on the left of Rectangle r2
Rectangle r1 is on the right of Rectangle r2
Rectangle r1 is above Rectangle r2
Returns true if both rectangles are in the same column, taking into account the margin
Returns true if both rectangles are in the same row, taking into account the margin
Get Rectangle corners
quarter Rectangle
split Rectangle Horizontally
split Rectangle Vertically
create Centered Rectangle
get Point from Rectangle
grow Rectangle
inset Rectangle
set Rectangle Bounds
to Awt Rectangle
generate Centered Rectangle
generate Rectangle2D
intercept Line And RectangularShape
Combine these two rectangles into one rectangle that encompasses both
Return a rectangle that encapsulates all rectangles in the Vector.
Do these two rectangles overlap
Do these two rectangles overlap horizontally?
Do these two rectangles overlap vertically?
Checks if rectangle r1 is inside rectangle r2
Check if a specified point is inside a specified rectangle.
Check if a specified polyline intersects a specified rectangle.
Checks if point px,py is within the bounds of the rectangle
are Rectangle Equal
compact Rectangle2D
expand Rectangle
expand Rectangle 2D
get Rectangle Bottom Center
get Rectangle2D Center 2D
get Rectangle Center
get Rectangle Left Center
get Rectangle Right Center
get Rectangle Top Center
round Rectangle2D to RoundRectangle2D
Convert Rectangle2D to Rectangle
union Rectangle array
Scales the given rectangle by the given scale factor.
This returns the "local" bounds of a component.
get Scaled Rectangle Dimensions
do Fit Rectangle2D
nearly Equals Rectangle2D
snug Fit Rectangle2D
Rectangle intersects
get Rounded Rectangle
get Rectangle Centering Point
draw D Rect
draw Rect
fill 3D Rectangle
fill Gradient Rectangle
fill Rectangle
draw Rectangle
draw Rect with OpenGL
draw Plain Rect
draw Round Rect
fill Rect
draw Rounded Rect opengl
gradient Fill Rect
Returns the point at which to draw a string so that it appears aligned within a given rectangle.
get Rectangle
Returns the x,y coordinates of the end point of line starting at startx, starty in the direction of
creates a square beginning at x,y and tilted in the direction of the angle.
darken Rectangle
draws a line starting at x,y, and going in the direction of the angle
fill Transparent Bordered Selection Rectangle
fill Transparent Selection Rectangle
fix Rectangle
shade Rectangle
Draws a 3D rectangle in the specified location with the given line thickness.
Draws an oval in the specified bounding rectangle with the specified pen thickness.
Draws a rectangle at the specified location with the supplied pen thickness.
Draws a rounded rectangle at the specified location with the supplied pen thickness.
Makes a solid 3D rectangle in the given color.
Calls g.fillRect(left, top, width, height) after setting the color appropriately.
Draws a solid rounded rectangle with the specified color.
get Line Rectangle Intersection
draw Round Rect Fade
get Clip Rectangle
Returns true if the first rectangle completely contains the second one.
Returns true if the two specified rectangles intersect.
Draw a focus rectangle on a graphics context.
Create an affine transform given two rectangles. Or, alternatively, two points in the old basis and
fill Blurred Border Rect
fill Blurred Glitch Rect
fill Gradient Rect
is Rectangle Displayable On Screen
Clip the specified line to the given rectangle
Draws a single-line highlight border rectangle.
round Filled Rectangle
round Rectangle
Returns the point at which to draw a string so that it appears center-aligned within a given rectangle.
Draws a 3d frame around the designated rectangle.
Draws a 3d hightlight frame around the designated rectangle.
grow Rectangle2D
Indicates whether r1 is nearest to r2 in the clockwise (>0) or anti-clockwise (<0) direction.
move Rectangle To Fit
paint Rectangle
Paints a rectangular drop shadow with a 5 pixel offset.
Paints a smooth gradient in a rectangle given the bounds x, y, width, height.
Clips the specified line to the given rectangle.
Checks, whether the given rectangle1 fully contains rectangle 2 (even if rectangle 2 has a height or width of zero!).
Returns true if the specified point (x, y) falls within or on the boundary of the specified rectangle.
Fill a rectangle.
Uses translucent shades of white and black to draw highlights and shadows around a rectangle, and th
fill Bevel Foggy Rect
fill Opposite Bevel Foggy Rect
fill Thwart Foggy Rect
Draw rectangle with various colors
Draw a chess board using nested for loop
形状
Display a smiley face.
Demonstrating some Java 2D shapes.
Drawing shape with Graphics2D
Java 2D Draw a shape with a paint,stroke, and rendering method
Draw a face
Extend JComponent to draw custom shape
Draw Smiley with Graphics
Combining Shapes
Creating Basic Shapes
Drawing Simple Shapes
Setting the Clipping Area with a Shape
Stroking or Filling a Shape
Filling Basic Shapes
Creating a Shape from a Stroked Shape
Draw various shapes
Draw shape with Antialiasing
create Intersection from two Shapes
create Subtraction from two Shapes
create Union from two Shapes
draw Shadowed Shape
build Star by Area
get a java.awt.Shape instance describing Glyph g (only working for non-Or shapes for now, but could
extract Last Line
without Last Line
Draws a rectangle, simulating a dotted stroke by painting only every second pixel along the one-pixel thick edge.
Draws a rectangle that appears etched into the surface, given four colors that are used for drawing.
Draws a rectangle that appears etched into the surface, given two colors that are used for drawing.
Draws a rectangle that appears lowered into the surface, given four colors that are used for drawing.
Draws a String at the given location, underlining the first occurrence of a specified character.
Draws a String at the given location, underlining the character at the specified index.
create Arrow
create UML Arrow
draw Arrow
create Arrow Shape
Returns a path for the arrow at the end of an edge from p1 to p2.
Draw an arrow
Draw an arrow head
Returns a shape that is more or less equivalent to the supplied shape.
clone Shape
Shape equals
Draws a filled Shape with the specified Paint object.
Fills a Shape with the specified Paint object.
draw Diamond Selector Corner
draw Round Selector Corner
calculate Intersection Clip
get Arrow Shape
circle On Rectangle
Line On Line
point In Circle
point On Rect
rect On Rect
array To Matrix
circle At Rect
save Shape
Creates a diagonal cross shape.
Creates a diamond shape.
Creates a triangle shape that points downwards.
Creates and returns a translated shape.
Creates a triangle shape that points upwards.
Draws a shape with the specified rotation about (x, y).
Rotates a shape about the specified coordinates.
Rotates a given shape.
Scales the shape, without changing its coordinates.
Translates a shape over the given distance.
Compute the bounds of a shape when stroked with the given stroke.
Draw spiral shape
尺寸
笔画
图像
BufferedImage
BufferedImage Blur
BufferedImage Color
BufferedImage Convert
BufferedImage Create
BufferedImage Crop
BufferedImage效应
BufferedImage Paint
Drawing on a Buffered Image
Scaling, Shearing, Translating, and Rotating a Drawn Image
Draws the given BufferedImage to the canvas, at the given coordinates, with the given Effect s applied.
Draws the given BufferedImage to the canvas, centered and cropped to fill the bounds defined by the
Draws the given BufferedImage to the canvas, centered, wholly contained within the bounds defined by
draw Titles for BufferedImage
BufferedImage draw Borders Black And White
draw Borders BufferedImage
Java 2D Image Paint BufferedImage
Fills the given BufferedImage with a Paint , preserving its alpha channel.
copy BufferedImage via Graphics2D
Java 2D Draw text, shape and image
Java 2D Draw image with operation:Copy, Scale Up, Scale Down,Scale Up:Bicubic, Convolve:LowPass,Conv
Java 2D Draw image with operation:Convolve LowPass, Convolve Sharpen,LookupOp, RescaleOp
Java 2D Draw image with cell
Drawing an Image
Draw image icon loaded from disk
paint To Image
BufferedImage Pixel
BufferedImage Resize
BufferedImage Rotate
BufferedImage Scale
GIF
图标
图像
验证码
图像压缩
图像转换
图像文件
图片加载
图像大小
缩略图
JPEG
PNG
库