circle templates for drawing

Read about circle templates for drawing, The latest news, videos, and discussion topics about circle templates for drawing from alibabacloud.com

Draw a circle using the Java drawing class graphics

Code: Package com.dikea.demo01; Import java.awt.*; Import javax.swing.*; Java Drawing principle Public class demo_01 extends JFrame { Mypanel MP = null; public static void Main (string[] args) { //TODO automatically generated method stub demo_01 demo01 = new demo_01 (); } Public demo_01 () { MP = new Mypanel (); This.add (MP); This.setsize (in); This.setdefaultcloseoperation (jframe.exit_on_close); This.setvisible (True);

Assembly Drawing Circle

Compilation round--effects such asThe code is as follows:1 dseg Segment2Center_x DW Max ;origin Point coordinate _x3Center_y DW - ;origin Point coordinate _y4Radius DW - ;radius _r5Label_x DW?;External Square right boundary6Label_y DW?;External Square Bottom boundary7 distance DW?8 dseg ends9 cseg SegmentTenAssumeCS:CSEG,ds:dseg One Start: A movAX, dseg;Loading DS Segments - movds, Ax - the movAh,0 ;Setting the grap

assembly Language Drawing Circle

CODES SEGMENT assumeCS:CODESSTART: MOVDs,axMOVah,00hMOVal,13hINT10HMOVDx +AGAIN: MOVCX,0again_x: PUSHCXPUSHDXCMPCX, the JBXbelowSUBCX, the JMPXsquareXbelow: MOVBx the SUBbx,cxMOVCX,BXXsquare: MOVax,cxMULCXMOVCx,axagain_y: POPDXPUSHDXCMPDx - JBYbelowSUBDx - JMPYsquareYbelow: MOVBx - SUBBX,DXMOVDX,BXYsquare: MOVAX,DXMULDXMOVDx,axHANDLE: ADDCX,DXMOVbx,cxPOPDXPOPCXCMPBx6400 JA LastMOVah,0chMOVAL,3 INT10HLast : INCCXCMPCX, the JBagain_xINCDXCMP

Total Pages: 2 1 2 Go to: Go

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.