51
Dev开发社区
首页
文章
问答
工具
搜索
登录
注册
文章频道
前端
css3
Javascript
html
Html5
Css
vue
网站优化
正则表达式
React
后端
C语言
C++
Java
.Net
PHP
Python
gis
Go语言
数据库
nosql
其他
Redis
sql
Mysql
Oracle
sqlserver
mongodb
移动
Flutter
Android
IOS
微信
微信小程序
支付宝小程序
快应用
开源
hadoop
资讯
经验
其他
工具
互联网络
代码编辑器
报表/图表
其他
算法
操作系统
linux
unix
windows
centos
mac
游戏开发
架构
微服务
网站架构
分布式系统
系统架构
软件工程
敏捷开发
软件工程
互联网络
e666. 创建缓冲图像
Abufferedimageisatypeofimagewhosepixelscanbemodified.Forexample,youcandrawonabufferedimageandthendrawtheresultingbufferedimageonthescreenorsaveittoafile.Abuffer...
代码星球
·
2021-02-11
e666.
创建
缓冲
图像
e680. 使三元色图像变明变暗
ThisexampledemonstrateshowtobrightenordarkenanRGBbufferedimagebyscalingthered,green,andbluevaluesintheimage.//Tocreateabufferedimage,seee666创建缓冲图像//Brightenthei...
代码星球
·
2021-02-11
e680.
三元
图像
变明
变暗
e656. 创建基本图形
Shapeline=newLine2D.Float(x1,y1,x2,y2);Shapearc=newArc2D.Float(x,y,w,h,start,extent,type);Shapeoval=newEllipse2D.Float(x,y,w,h);Shaperectangle=newRectangle2D.Fl...
代码星球
·
2021-02-11
e656.
创建
基本
图形
e659. 缩放,剪取,移动,翻转图形
AffineTransformtx=newAffineTransform();tx.scale(scalex,scaley);tx.shear(shiftx,shifty);tx.translate(x,y);tx.rotate(radians);ShapenewShape=tx.createTransformedSh...
代码星球
·
2021-02-11
e659.
缩放
剪取
移动
翻转
e657. 用直线和曲线绘制图形
GeneralPathshape=newGeneralPath();shape.moveTo(x,y);shape.lineTo(x,y);shape.quadTo(controlPointX,controlPointY,x,y);shape.curveTo(controlPointX1,controlPointY1,...
代码星球
·
2021-02-11
e657.
直线
曲线
绘制
图形
e655. 混合风格的文本
Thisexampleappliesanewfontandbackgroundcolortoapartofthetext.Youcanapplystylestoasmanypartsofthetextasyouneed.SeeTextAttributesforavailablestyles.//Applystylest...
代码星球
·
2021-02-11
e655.
混合
风格
文本
e658. 组合图形
Areashape=newArea(shape1);shape.add(newArea(shape2));shape.subtract(newArea(shape3));shape.intersect(newArea(shape4));shape.exclusiveOr(newArea(shape5)); R...
代码星球
·
2021-02-11
e658.
组合
图形
e654. 获得文本的缩略图
ShapegetTextShape(Graphics2Dg2d,Stringstr,Fontfont){FontRenderContextfrc=g2d.getFontRenderContext();TextLayouttl=newTextLayout(str,font,frc);returntl.getOutline...
代码星球
·
2021-02-11
e654.
获得
文本
略图
e651. 列出所有可用字体
Afontfamilyreferstoasetoffontfaceswitharelatedtypographicdesign.Forexample,thefontfacesinthefamilyLucidaSansTypewritermightbeLucidaSansTypewriterBold,andLucidaS...
代码星球
·
2021-02-11
e651.
列出
所有
可用
字体
e653. 写入段落文本
Inordertochangethefontofthetext,youneedtosupplyanattributedstringtotheLineBreakMeasurer.Seee655混合风格的文本foranexample.publicvoiddrawParagraph(Graphics2Dg,Stringpar...
代码星球
·
2021-02-11
e653.
写入
段落
文本
e647. 处理鼠标移动事件
component.addMouseMotionListener(newMyMouseMotionListener());publicclassMyMouseMotionListenerextendsMouseMotionAdapter{publicvoidmouseMoved(MouseEventevt){//Pro...
代码星球
·
2021-02-11
e647.
处理
鼠标
移动
事件
e648. 双击和三击事件
component.addMouseListener(newMyMouseListener());publicclassMyMouseListenerextendsMouseAdapter{publicvoidmouseClicked(MouseEventevt){if(evt.getClickCount()==3){...
代码星球
·
2021-02-11
e648.
双击
三击
事件
e646. 处理鼠标点击事件
component.addMouseListener(newMyMouseListener());publicclassMyMouseListenerextendsMouseAdapter{publicvoidmouseClicked(MouseEventevt){if((evt.getModifiers()&...
代码星球
·
2021-02-11
e646.
处理
鼠标
点击
事件
e645. 处理键盘事件
Youcangetthekeythatwaspressedeitherasakeycharacter(whichisaUnicodecharacter)orasakeycode(aspecialvaluerepresentingaparticularkeyonthekeyboard).component.addKeyL...
代码星球
·
2021-02-11
e645.
处理
键盘
事件
e650. 激活事件
AnobjectwishingtofireitemeventsmustimplementItemSelectable.Thisexampleshowstypicalcodethatanobjectmustimplementtofireitemevents.Whenanitemeventistobefired,fireI...
代码星球
·
2021-02-11
e650.
激活
事件
专栏
更多
老潘
关注
欢迎关注
建站高手
关注
兴趣:做网站
星空
关注
星空下的梦~
代码星球
关注
IT猿
关注
首页
上一页
...
409
410
411
412
413
...
下一页
尾页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他