PackageCom.niit.javagui;Importjava.awt.BorderLayout;ImportJava.awt.Color;Importjava.awt.GridBagConstraints;Importjava.awt.GridLayout;ImportJava.awt.Label;ImportJavax.swing.JButton;ImportJavax.swing.JFrame;ImportJavax.swing.JLabel;ImportJavax.swing.JPanel;ImportJavax.swing.border.Border;/** * @author: Annie * @date: May 30, 2016 * @description: Chess board*/ Public classWingridextendsjframe{ Public Static vo
int[] Array = new int[132]{//132115,105,106,107,108,109,110,111,112,113,114,215,205,206,207,208,209,210,211,212,213,214,315,305,306,307,308,309,310,311,312,313,314,415,405,406,407,408,409,410,411,412,413,414,115,105,106,107,108,109,110,111,112,113,114,215,205,206,207,208,209,210,211,212,213,214,315,305,306,307,308,309,310,311,312,313,314,415,405,406,407,408,409,410,411,412,413,414,115,105,106,107,108,109,110,111,112,113,114,215,205,206,207,208,209,210,211,212,213,214,315,305,306,307,308,309,310,
1, initialize the map, in the drawing can first initialize the map, with an array to store the location of the checkpoint, and then use the loop to the map where the level of the points to give the value of the level.
The key code is as follows
2, check the value of the coordinates, after the map is initialized, you can begin to map the operation of the map can be used in the design of the distribution of the layout, the map should be t
/* The code used in the article is only a part of the source can be contacted by email me [email protected]*/During this time learning the Java Swing interface, I tried to make a drawing board. realizes the line, the curve, the gun, the rectangle, the circle, the text, the eraser and so on operation, the feeling harvest is very big.Since the drawing
Recently made a similar Windows drawing board applet, to share with you. The function and the interface all imitate with the drawing board which the Windows own, the interface like screenshot. The main functions are: hand-painted lines, simple graphics, text input, block drag and drop, repeat undo, Zoom, open the Save
a simple drawing board development reprint please indicate source:http://blog.csdn.net/u012637501
(
embedded _ small J Sky )
first, drawing board principle1. Linear effectThe drawing board can a
In fact, drawing board this thing, a lot of places are used to, for example: in QQ there is a scribble drawing board, computer graphics tools, PS, and so on, these are used to draw the board, today I realized a small drawing
geometry of the operation of the process is very simple, no programming, simple operation, the teacher can draw a variety of graphics, but also in a timely manner according to the requirements of teaching, change the size of the graphic, or to draw a new graphic. Each teacher can quickly grasp the basic use of the geometry drawing board through the geometry artboard tutorial , without consuming too much tim
ScalesketchpaddemoProject Address:Demo APK experience DownloadDemo2 apk Experience DownloadUsage:Enter the project root directory: Https://github.com/ShaunSheep/ScaleSketchPadDemoClone or download project to local,Open Android Studio->file->new->import new moudle-> Check your local app or AAP2This project consists of two modules
App1 for ordinary drawing board
APP2 for the
Step into the multimedia teaching era, the production of good teaching courseware is also a teacher's ability to reflect, will also have an impact on the teacher's rating. Then say again, as the saying goes, paddle, for teachers are such, want to make a particularly good teaching courseware, choose a good tool is the first step! In the complex network world, the online auxiliary teaching tools are particularly many, many teachers are very difficult to find a suitable for their own, the following
(R.menu.main, menu); return true;} Handle Menu Event @overridepublic boolean onoptionsitemselected (MenuItem item) {Drawview Drawview = (drawview) Findviewbyid ( R.ID.DRAWVIEW1), switch (Item.getitemid ()) {//sets the method to run for the menu subkey with ID menu_exit.Case R.id.menu1_sub1:drawview.paint.setstrokewidth (1); Break;case R.id.menu1_sub2:drawview.paint.setstrokewidth (5 ); Break;case r.id.menu1_sub3:drawview.paint.setstrokewidth (Break;case); R.ID.MENU1_SUB4: DrawView.paint.setStro
For the users of the painter software to share the detailed interpretation of the drawing board hand-painted refreshing couple diagram tutorial.
Tutorial Sharing:
1, first we open painter, use pencil tool. Recommended: "Painter commonly used brush Introduction"
2. Draw a Sketch
3, save, open the sketch in PS, copy the layer, clear the background layer.
4
Drawing is an important way to mark and visualize data.
By integrating the drawing board function in MATLAB, it can facilitate scientific computing.
1. Set MATLAB to support opencv Compilation
Operating System: Qilin 14.04 (based on Ubuntu 14.04)
Command: Mex-V
-> mexopts.sh sourced from directory (DIR = $MATLAB/bin) FILE = /usr/local/MATLAB/R201
Cat Share, must boutiqueOriginal articles, welcome reprint. Reprint Please specify: Sanayu's BlogAddress: http://blog.csdn.net/u013357243?viewmode=contentsSource: http://download.csdn.net/detail/u013357243/8666923Effect:Code: NyviewNYView.h//// NYView.h// 画画板//// Created by apple on 15-5-6.// Copyright (c) 2015年 znycat. All rights reserved.//#import @interface NYView : UIView- (void)clearView;- (void)backView;@endnyview.m////NYVIEW.M//drawing
inti,j; the intsize; - intindex_x,index_y; Wuprintf"Please enter the length of the checkerboard (must be a power of 2 k) \ n"); -scanf"%d",size); Aboutprintf"Please enter the coordinates of the point to be overwritten in the checkerboard: \ n"); $scanf"%d%d",index_x,index_y); -Initgraph (640,640); -Chessboard (0,0, index_x,index_y,size); - Beginbatchdraw (); A ints=size*size; + for(intk=0; k) the { -i=k/size; $j=k%size; theSetfillcolor (color[
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.