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
minus Getboundingclientrect method returns the left, top value.Here is the implementation code:Just such a simple mouse painting function is completed, the shortcomings are also, for example, can not draw a point ... I personally think that using canvas to do drawing or relatively weak, some of the complex features are not very good to achieve, but you can also try to, for example, to add a method to save the picture, define Draw.prototype.save = fun
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
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
For your painter software users to detailed analysis of the combination of digital board to draw a fashion effect map of the tutorial.
Tutorial Sharing:
Authoring tools: Wacom Intuos 3 (three generations) digital board, painter Software, software.
Finally complete the diagram:
Before this hand-painted fashion painting tutorial, we first need to use illustrator CS
modified drag-and-drop operation handler:
Public void mousedragged (mouseevent e ){Graphics G = getgraphics ();Copy_from_offscreen_buf (g );X1 = E. getx ();Y1 = E. Gety ();Update_buffer (G, new drawitem (x0, y0, X1, Y1 ));G. Dispose ();}
Note: In this method, we didn't update the backend buffer. This is because when you drag the mouse, the line is displayed on the drawing board, but the line is not actuall
After you've learned to use button sniffing and mouse listeners, we can make a own drawing board, the following is a simple drawing board I made before, the function is still insufficient, but has been able to complete the pencil, eraser, draw a straight line, circle and other basic work, but also to complete the free
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
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[
of a class, the textbook on the two functions of the vertex-style does not make too much explanation, students often rely on the teacher's explanation to understand, at this time if we can make a dynamic presentation two times function vertex-style courseware, so that students intuitively feel two times function of the coefficients on the function So that you can deepen your understanding.Making two-times function vertex-based courseware with geometry artboardMaking full use of modern multimedi
Drawing board, can be drawn by line or fill the way, you can set the color of the brush, thickness, and be able to save the painted content as a JPG file (save location is Sdcard/huaban): Http://www.dwz.cn/zbOoL NBSP ; , NB Sp , NB Sp , NB Sp , NB Sp , NB Sp , NB Sp / nbsp
Drawing board, can be drawn by line or fill the way, you can set the color of the brush, thickness, and be able to save the painted content as a JPG file (save location is Sdcard/huaban): Http://www.dwz.cn/zbOoL NBSP ; NBS P NBS P NBSP;NBS P , NB Sp NBS P NBS P NBS P ,
(image:didFinishSavingWithError:contextInfo:), nil);}-(void) Image: (UIImage *) image didfinishsavingwitherror: (nserror *) error ContextInfo: (void *) ContextInfo{if (Error) {[Mbprogresshud showerror:@ "Save failed, please check if the app has access to the album"];} else {[Mbprogresshud showsuccess:@ "save Success"];}}8. Create a new class for Captureview(used to, only need to send in the required view)In the CaptureView.h+ (UIImage *) Captureimagewithview: (UIView *) view;In the CAPTUREVIEW.
VML drawing board ② script -- VMLgraph. js, XMLtool. js? 1.1.29 script
*************
* VMLgraph. js
*************
Var xo = 0;
Var yo = 0;
Var ox = 80;
Var oy = 20;
Var dx = 0;
Var dy = 0;
Var drawKey = false;
Var itemID = 0;
Var ShapeItemNum = 0;
Var ShapeItemX = 0;
Var ShapeItemY = 0;
Var CurveItemNum = 0;
Var NodeDelete = false;
Var ToolBarNum = 2; // preset tool number
Var gradientX =-1;
Function cursor
"Spectrum.js"
The value assignment is in JSON mode, using "Jquery.json-2.4.js"
When using JSON assignment, because I have a JS wrapper class for graphics, and with their own definition of the method, so at the time of assignment there will be a problem of the definition of their own method, the original because of parsing JSON, the object will be parsed as object instead of my definition of objects, so it is necessary to deal with the human
All code +html A total of 600 lines, which in
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.