# poster **Repository Path**: wuyunbin084math/poster ## Basic Information - **Project Name**: poster - **Description**: A tool to generate posters with QR code - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-12 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # poster A tool to generate posters with QR code ## demo ``` public static void main(String[] args) { PosterUtil posterUtil = new PosterUtil(); //构建昵称对象 String backgroundImage = "https://mashangjie-prod.oss-cn-qingdao.aliyuncs.com/posterbg.jpg"; String nickname = "社会你圣哥"; NickName nickName = new NickName(nickname, 45, 88, 5); //构建头像对象 String headImageUrl = "http://thirdwx.qlogo.cn/mmopen/vi_32/Vc8AF6CPGj7f1ENAibOHibIqZeyrDNQgMPAkgacLDygrL84SgVBHaxAQHPc07iateRarZyMrVUkdWVoRvbV6I9HxQ/132"; HeadImage headImage = new HeadImage(headImageUrl, 18, 18, 18, 83); //构建二维码对象 String qrText = "http://member.mashangjie.shop/#/pages/wechatlogin/wechatlogin?recommendId=01UkTw1IjiiG"; QrCode qrCode = new QrCode(qrText, 50, 50, 25, 50); String result = posterUtil.base64PosterCreate(backgroundImage, nickName, headImage, qrCode); System.out.println(result); } ```