FimdFramebuffer
S5pv210_video_samsung_memsize_fimd is the physical memory space reserved for framebuffer. the formula below is the size of the framebuffer reserved space.
4 indicates the number of pixels in the LCD screen, generally 32bit. config_fb_cloud_buffers indicates the number of framebuffer; s5pv210_ LCD _width and s5pv210_ LCD _height indicate the width and height of the screen.
#define S5PV210_VIDEO_SAMSUNG_MEMSIZE_FIMD (S5PV210_LCD_WIDTH * S5PV210_LCD_HEIGHT * 4 * CONFIG_FB_S3C_NR_BU
the next step. Of course, you can also use Int or a more advanced class.
Gametimer is a very simple timer.
I added a false loading progress bar to this transition screen. Of course it is false. At this time, the next screen has not been instantiated yet. It is actually a timer =. =
There is also an image. I joined this process to see if the switchover was hard.
The following are:
The following are debugging information:
Com. Tide. g2d. screeneffec
Part of the content is taken from the Internet. Select the best part and add it to your own practice. record it for future generations and convenience!
1. Generate JPG Images
Response. setcontenttype ("image/JPEG ");Int width = 32, Height = 18;
Bufferedimage image = new bufferedimage (width, height, bufferedimage. type_int_rgb );Graphics G = image. getgraphics ();G. setcolor (color. White );G. fillrect (0, 0, width, height );G. setcolor (color. Red );G. drawoval (0, 0, width, height );Servletout
Recently used Java to dynamically generate the background transparent image function, from the GIF and PNG select the PNG format, automatically add link address: http://www.my400800.cn to the picture on the site. The search results are summarized as follows:
1. Generate PNG Images
Int width = 400;Int Height = 300;// Create a bufferedimage objectBufferedimage image = new bufferedimage (width, height, bufferedimage. type_int_rgb );// Obtain graphics2dGraphics2d
processing, first create a java2d object Graphics2D g2d = image. createGraphics (); // fill the background g2d with the source image. drawImage (image, 0, 0, image. getWidth (), image. getHeight (), null, null );View Code
After Composite is set for Graphics2D context, you can write the text or image you want to write to the source image.
AlphaComposite ac = AlphaComposite. getInstance (AlphaComposite. S
. JComponent; import javax. swing. JFrame; import javax. swing. JPanel; @ SuppressWarnings ("serial") public class Clock extends JComponent implements Runnable {private int radius; pub Lic Clock (int radius) {this. radius = radius;} public void paint (Graphics g) {Graphics2D g2d = (Graphics2D) g; // these two statements are the key to removing line aliasing, as for the principle, I am not clear about it. These two sentences are obtained by the author
], centercolumnx, toprowy, rightcolumnx-centercolumnx, Y + height-toprowy); If (patches [top_right]! = NULL) batch. Draw (patches [top_right], rightcolumnx, toprowy, x + width-rightcolumnx, Y + height-toprowy );}
Calculate the width of the left and right columns, and calculate the center and top height. And then draw from the bottom. To be honest, I think this code looks very interesting.
Now let's talk about the use of several commonly used controls. Build a stage first.
Try label first. Th
. swing. table. tablecellrenderer; public class simple extends jframe {Private Static final long serialversionuid = 1l; Private Static final int min_width = 1270; Private Static F Inal int min_height = 700; private color color1 = new color (225,237,233); Private color color2 = new color (76,124,206); Private jtable filetable; public simple () {// set to Windows style try {string windows = "com. sun. java. swing. plaf. windows. windowslookandfeel "; uimanager. setlookandfeel (Windows);} catch (ex
1. Create a Graphics objectBufferedImage bi = new BufferedImage (120,120, BUFFEREDIMAGE.TYPE_INT_ARGB);Graphics2D g2d = Bi.creategraphics ();2. Control graphics Edge Anti-aliasingGraphics2D. Setrenderinghint (renderinghints.key_antialiasing, renderinghints.value_antialias_on);3. Segment/polylineTwo-point draw segmentG2d.drawline (50,50,200,50);Multipoint draw line Point (50, 100), point (100, 130), point (150, 70), point (200, 100)int[] xpoints = new
. height = (y2-y1) + 1;
// Draw selection rectangle.
Graphics2D g2d = (Graphics2D) g;
G2d. setStroke (bs );
G2d. setPaint (gp );
G2d. draw (rectSelection );
}
Before you draw a rectangle, it must be marked on the left and right corners to determine the origin and range of the rectangle. So that you can drag a select
. In performance, the use of nested three-dimensional casing to express the agreement of the "load" is more appropriate (pictured below).
The actual implementation is simple, the main code is as follows:
import java.awt.*; import java.awt.geom.*; import javax.swing.*; import twaver.*; public class Piplecomponent extends JComponent { public void Paint (Graphics g) { graphics2d g2d = (graphics2d) g; G2d.setrenderinghint (renderinghints.key_a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.