首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • WorkBuddy帮你疯狂写文

    ="middle"font-size="12"fill="#64748b">评估论证链完整度</text><textx="125"y="154"text-anchor="middle"font-size --Arrow1--><textx="248"y="116"text-anchor="middle"font-size="22"fill="#94a3b8">→</text><! ="middle"font-size="12"fill="#64748b">引入跨领域视角</text><textx="380"y="154"text-anchor="middle"font-size= --Arrow2--><textx="503"y="116"text-anchor="middle"font-size="22"fill="#94a3b8">→</text><! ="middle"font-size="12"fill="#64748b">统一风格调性</text><textx="635"y="154"text-anchor="middle"font-size="

    12110编辑于 2026-06-05
  • 来自专栏Java小王子

    Python3 图片打水印

    ImageDraw, ImageFont import os def water_work(img): x, y = img.size textx = int(x*1.5) texty = int(y*1.5) blank = Image.new('RGB', (textx, texty), 'white' ImageFont.truetype('simsun.ttc', size=50) text = '王小涛_同學' draw.ink = 100 draw.text(((textx-x

    52920发布于 2021-11-02
  • 来自专栏程思阳的专栏

    Android字体渐变效果

    */ canvas.save(); //绘制文字X轴的位置 【文字开始的位置】 float textX = viewWidth - textWidth / 2; //绘制文字Y轴的位置 //文字结束的位置 float end = viewWidth + mPaint.measureText(text) / 2; canvas.clipRect(end, 0, textX textWidth, float textHeight) { mPaint.setColor(Color.RED); canvas.save(); //绘制文字X轴的位置 [文字开始的位置] float textX //绘制文字Y轴的位置 float textY = viewHeight - textHeight / 2; //跟随者上层裁剪 canvas.clipRect((int) textX * 参数一: 绘制文字 * 参数二: x轴开始位置 * 参数三: y 轴开始位置 * 参数四: 画笔 */ canvas.drawText(text, textX

    1.8K10编辑于 2022-12-18
  • 来自专栏黄啊码【CSDN同名】

    PHP实现简单汉字验证码

    $i++) { $textColor = imagecolorallocate($image, rand(20, 100), rand(20, 100), rand(20, 100)); $textX = $i * 50 + 10; $textY = rand(40, 60); imagettftext($image, 30, rand(20, 50), $textX, $textY, $textColor

    2.6K20发布于 2020-05-29
  • 来自专栏若尘的技术专栏

    autogui库的使用制作简易连点器

    self.labely.resize(150, 50) self.labely.setText("y轴的坐标") self.labely.move(20, 60) self.textx =QLineEdit(self) self.textx.resize(150,50) self.textx.move(150,0) self.texty

    90654发布于 2021-11-18
  • 来自专栏星河造梦坊专栏

    小功能⭐️C#控制小数点后位数的方法

    UnityEngine; using UnityEngine.UI; public class accelerationScript : MonoBehaviour { public Text textx ; public Text texty; public Text textz; private void Update() { textx.text

    59710编辑于 2024-08-16
  • 来自专栏向治洪

    AnimatedPathView实现自定义图片标签

    "; private int textX,textY; public AnimatedPathView(Context context) { this(context, mPathLength = measure.getLength(); } public void setPathText(String pathText,int textX ,int textY ) { this.pathText=pathText; this.textX=textX; this.textY=textY; TextUtils.isEmpty(pathText)){ canvas.drawText(pathText,textX,textY,mPaint); }

    1.4K100发布于 2018-02-05
  • 【shadertoy】丧心病狂1400行代码纯ps实现的超级玛丽第一关

    screenWidth, float screenHeight ) { color = RGB( 0, 0, 0 ); float offset = 18.0; float textX - offset * 4.0; float marioY = textY + 16.0 * 3.0; DrawW( color, textX - offset * 0.0, textY ); DrawO( color, textX - offset * 1.0, textY ); DrawR( color, textX - offset * 2.0, textY ); DrawL( color, textX - offset * 3.0, textY ); DrawD( color, textX - offset * 4.0, textY ); Draw1( color, textX - offset * 6.0, textY ); DrawM( color, textX - offset * 7.0, textY ); Draw1

    82630编辑于 2022-10-31
  • 来自专栏Modeng的专栏

    Canvas学习系列二:Canvas的坐标系统

    canvas.height; cxt.lineWidth = 2; cxt.strokeStyle = "green"; var textX cxt.font = '12pt Arial'; cxt.fillStyle = 'red'; cxt.fillText(textX , -30, dy); textX+= 50; dy+=50; } } drawAxis

    7.7K10发布于 2018-09-17
  • 来自专栏我在本科期间写的文章

    气球飘飘:用Java Swing创造令人心旷神怡的视觉奇观

    ; int textWidth = g.getFontMetrics(font).stringWidth(text); int textX / 2; int textY = endY + 20; // 文字位于线段结束点的下方一定距离 g.drawString(text, textX ; int textWidth = g.getFontMetrics(font).stringWidth(text); int textX textWidth) / 2; int textY = y + BALLOON_HEIGHT / 2; g.drawString(text, textX

    80710编辑于 2024-03-20
  • 来自专栏每天学点Android知识

    仿抖音发布按住拍呼吸效果

    / 2.0f, paint) paint.textSize = 40f paint.color = Color.WHITE val textX drawText(showText, 0, showText.length, textX, textY, paint) paint.color = Color.RED

    97710发布于 2019-08-17
  • 来自专栏林德熙的博客

    dotnet OpenXML 使用 MAUI 渲染 PPT 的面积图图表

    = 16f; canvas.FontSize = fontSize; var textRightMargin = 5; var textX = 0; var textY = offsetY - fontSize / 2f; var textWidth = plotAreaOffsetX - textX var text = categoryAxisValueList[i].GetViewText(); canvas.DrawString(text, textX = 16f; canvas.FontSize = fontSize; var textRightMargin = 5; var textX = 0; var textY = offsetY - fontSize / 2f; var textWidth = plotAreaOffsetX - textX

    2.8K30编辑于 2023-04-07
  • 来自专栏全栈程序员必看

    《Android游戏编程之从零开始》笔记「建议收藏」

    implements SurfaceHolder.Callback,Runnable{ private SurfaceHolder sfh; private Paint paint; private int textX this.getHeight(), paint); //利用RGB的方式刷屏 canvas.drawRGB(0, 0, 0); canvas.drawText("Game", textX private void logic(){ } @Override public boolean onTouchEvent(android.view.MotionEvent event) { textX

    2.1K21编辑于 2022-06-27
  • 来自专栏韩曙亮的移动开发专栏

    【Android 应用开发】 自定义 圆形进度条 组件

    是否闭合圆弧, 画笔 canvas.drawArc(rectf, 270, mProcessValue, false, mPaint); 绘制文字 : canvas.drawText(str, textX = textRect.width(); int textHeight = textRect.height(); //根据数字大小获取绘制位置, 以便数字能够在正中央绘制出来 int textX center - textWidth / 2; int textY = center + textHeight / 2; //正式开始绘制数字 canvas.drawText(str, textX

    89120编辑于 2023-03-27
  • 来自专栏QQ音乐前端团队专栏

    前端水印生成方案

    ",        fillStyle = 'rgba(184, 184, 184, 0.8)',        content = '请勿外传',        cb = null,        textX          ctx.font = font;          ctx.fillStyle = fillStyle;          ctx.fillText(content, img.width - textX

    7.6K41发布于 2018-07-15
  • 来自专栏Android 开发者

    深度解析 Jetpack Compose 布局

    textPlaceable.width * animationProgress val iconX = (width - textWidth - iconPlaceable.width) / 2 val textX = 0f) { textPlaceable.placeRelative(textX.toInt(), textY) } } } △ 自定义底部导航 使用自定义布局的时机 textPlaceable.width * progress val iconX = (width - textWidth - iconPlaceable.width) / 2 val textX = 0f) { textPlaceable.placeRelative(textX.toInt(), textY) } } } △ 修正后的底部导航 我们使用了能提供当前动画进度的函数作为参数

    3.1K30编辑于 2022-03-29
  • 来自专栏前端三元同学

    用Canvas实现一个动态甜甜圈图表

    ctx.save(); ctx.font = '12px Arial'; ctx.fillStyle = '#000000'; ctx.textBaseline = 'top'; const textX w + marginRight; const textY = y - textH - Legend.MARGIN_BOTTOM + offsetY; ctx.fillText(text, textX

    94120发布于 2021-03-25
  • 来自专栏前端壹栈

    前端水印实现方案

    fillStyle = 'rgba(184, 184, 184, 0.8)', content = '水印', cb = null, textX font; ctx.fillStyle = fillStyle; ctx.fillText(content, img.width - textX

    2.9K20发布于 2021-07-05
  • 来自专栏腾讯IMWeb前端团队

    用Canvas实现一个动态甜甜圈图表

    ctx.save(); ctx.font = '12px Arial'; ctx.fillStyle = '#000000'; ctx.textBaseline = 'top'; const textX + w + marginRight; const textY = y - textH - Legend.MARGIN_BOTTOM + offsetY; ctx.fillText(text, textX

    78210编辑于 2022-06-29
  • 来自专栏数据STUDIO

    数据可视化 | 手撕 Matplotlib 绘图原理(二)

    添加箭头和文字说明 plt.annotate(text, (x, y), (textx, texty), arrowprops=dict(arrowstyle="->", color='r')) 常用参数 text: 进行说明的文本 (x, y): 要进行说明的点的横纵坐标 (textx, texty): 说明的文本的要放的位置的横纵坐标 arrowprops=dict(arrowstyle="->")

    2.2K40发布于 2021-06-24
领券