Personalized QR code open-source topics <liquefaction/rounded corners/effects>

Source: Internet
Author: User

Basic Methods:

Changefillshape

// Modify the fill shape changefillshape (...)

View code

// Liquefaction method inkpaint (...)

View code

// Rounded corner style for (INT I = 0; I <matrix. length; I ++) {for (Int J = 0; j <matrix. length; j ++) {rect = new rectangle (J + this. spacingw) * qrcodeencoder. qrcodescale, (I + this. spacingh) * qrcodeencoder. qrcodescale, qrcodeencoder. qrcodescale, qrcodeencoder. qrcodescale); If (Matrix [J] [I]) {changefillshape (G, new solidbrush (color. blue), rect, en_fillshape.fillroundrectangle, new fillshape () {radius = 5, roundstyle = roundstyle. all}, backbrush) ;}else {changefillshape (G, backbrush, rect, en_fillshape.fillrectangle, new fillshape (), backbrush );}}}

// Modify the radius value
ChangeFillShape(g, new SolidBrush(Color.Blue), rect, EN_FillShape.FillRoundRectangle, new FillShape() { radius = 50, roundStyle = RoundStyle.All }, Backbrush);

// Liquefaction style for (INT I = 0; I <matrix. length; I ++) {for (Int J = 0; j <matrix. length; j ++) {rect = new rectangle (J + this. spacingw) * qrcodeencoder. qrcodescale, (I + this. spacingh) * qrcodeencoder. qrcodescale, qrcodeencoder. qrcodescale, qrcodeencoder. qrcodescale); If (Matrix [J] [I]) {// changefillshape (G, forebrush, rect, en_fillshape.fillrectangle, new fillshape (), forebrush ); fillshape _ fillshape = new fillshape (); _ fillshape = inkpaint (matrix, I, j, rect, 100, true); changefillshape (G, forebrush, rect, en_fillshape.fillroundrectangle, _ fillshape, backbrush);} else {changefillshape (G, backbrush, rect, en_fillshape.fillrectangle, new fillshape (), backbrush); // fillshape _ fillshape = new fillshape (); // _ fillshape = inkpaint (matrix, I, j, rect, 100, false); // changefillshape (G, backbrush, rect, en_fillshape.fillroundrectangle, _ fillshape, forebrush ); // Note: The filled color forebrush is passed in as the liquefaction background color }}}

For (INT I = 0; I <matrix. length; I ++) {for (Int J = 0; j <matrix. length; j ++) {rect = new rectangle (J + this. spacingw) * qrcodeencoder. qrcodescale, (I + this. spacingh) * qrcodeencoder. qrcodescale, qrcodeencoder. qrcodescale, qrcodeencoder. qrcodescale); If (Matrix [J] [I]) {// changefillshape (G, forebrush, rect, en_fillshape.fillrectangle, new fillshape (), forebrush ); fillshape _ fillshape = new fillshape (); _ fillshape = inkpaint (matrix, I, j, rect, 100, true); changefillshape (G, forebrush, rect, en_fillshape.fillroundrectangle, _ fillshape, backbrush);} else {// changefillshape (G, backbrush, rect, en_fillshape.fillrectangle, new fillshape (), backbrush); fillshape _ fillshape = new fillshape (); _ fillshape = inkpaint (matrix, I, j, rect, 100, false); changefillshape (G, backbrush, rect, en_fillshape.fillroundrectangle, _ fillshape, forebrush); // note: filled forebrush with liquefied background color }}}

 

Personalized QR code Open-Source Topic <liquefaction/rounded corner/Effect>. The introduction is complete. Thank you for your viewing and support.

 

The following is an open source address, GitHub abroad, and oschina.net in China.

Oschina.net:

Http://git.oschina.net/cheng5x/Yc.QrCode

 

GitHub:

Https://github.com/cheng5x/YcQrCode

 

Official Website:
Http://original-ad.com

Q:
28629273

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.