Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
王雷
/
mnist
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c1cc7883
authored
Apr 29, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改成员变量名
1 parent
23a0f7ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
app/src/main/java/com/agenew/mnist/FingerPaintView.java
app/src/main/java/com/agenew/mnist/FingerPaintView.java
View file @
c1cc788
...
...
@@ -16,7 +16,7 @@ public class FingerPaintView extends View {
private
Path
mPath
;
private
Bitmap
mDrawingBitmap
;
private
Canvas
mDrawingCanvas
;
private
Paint
d
rawingPaint
;
private
Paint
mD
rawingPaint
;
private
float
mPenX
=
0.0f
;
private
float
mPenY
=
0.0f
;
private
Paint
mPaint
;
...
...
@@ -38,7 +38,7 @@ public class FingerPaintView extends View {
}
private
void
init
()
{
d
rawingPaint
=
new
Paint
(
Paint
.
DITHER_FLAG
);
mD
rawingPaint
=
new
Paint
(
Paint
.
DITHER_FLAG
);
mPath
=
new
Path
();
mPaint
=
new
Paint
();
mPaint
.
setAntiAlias
(
true
);
...
...
@@ -62,7 +62,7 @@ public class FingerPaintView extends View {
protected
void
onDraw
(
Canvas
canvas
)
{
super
.
onDraw
(
canvas
);
if
(
canvas
!=
null
)
{
canvas
.
drawBitmap
(
mDrawingBitmap
,
0
f
,
0
f
,
d
rawingPaint
);
canvas
.
drawBitmap
(
mDrawingBitmap
,
0
f
,
0
f
,
mD
rawingPaint
);
canvas
.
drawPath
(
mPath
,
mPaint
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment