Professional Documents
Culture Documents
Mad Microproject 01 Mad MP
Mad Microproject 01 Mad MP
MICROPROJECT ON
Paint Application
PROJECT GUIDE
Mrs. Kiran Baviskar Mam
Certificate
This is to certify that Student of CO 6I (A) ( R.S.C, M.B.F, A.R.C, V.S.M ) ,
Roll Nos (41,81,82,77) of 5th Semester of Diploma in Computer Engineering of
Institute, Government Polytechnic Jalgaon (Code:0018) has completed Micro
Project satisfactorily in the Subject – Mobile Application Development (22617)
for the Academic Year 2021-2022 as prescribed in the curriculum.
Place : Jalgaon
Date : / /2021
Seal of Institution
SUBMISSION
This is to certify that Student of CO 6I (A) ( R.S.C , M.B.F , A.R.C , V.S.M ), Roll
Nos (41,81,82,77) of 6h Semester of Diploma in Computer Engineering of Institute,
Government Polytechnic Jalgaon humbly submit that we have completed from time
to time the MicroProject work as described in this report by our own skills and
study between the period from 2021 to 2021 per
instructions/guidance of Kiran Baviskar Mam.
And that following students were associated with us for this work, however,
quantum of our contribution has been approved by the Lecturer. And that we have
not copied the report on its any appreciable part from any other literature in
contravention of the academic ethics.
Signature of Students
41
77
81
82
4 Collection of Data
7 Formulation of Content
INDEX
1 Abstract 13
2 Source code 14
3 Output of Project 23
4 Future Scope 24
5 Applications 25
6 Conclusion 25
7 Reference 26
8 Skill Develop 26
Proposed methodology :
Action Plan
Rushali
2 Sorting of topic Chaudhari
3 Selection of topic
Vaishnavi
4 Collecting Mahajan
information
5 5. Implementing Mayuri Fegade
of information
Aarti Chaudhari
6 6. Learning basic
operations
7 7. Implementing
basic operations
8 8. Coding our
program
9 9. Making report
10 10. Report and
project ready
5
Websites https://www.tutorialspoint.com 1 Yes
/operating_system/os_services.
htm
6
MobileApplication
Reference Books 1 Yes
Development
Code : 22617
Relevance to the
course
Literature review
Information
collection
Analysis of data
and
representation
Completion of
the target as per
project proposal
Report
preparation
Presentation of
the micro project
…………………………………………………………………………………….........................……………………………………………………
……………………………….........................
…………………………………………………………………………………….........................
…………………………………………………………………………………….........................
…………………………………………………………………………………….........................
…………………………………………………………………………………….........................
ACKNOWLEDGEMENT
We are also thankful to our entire group. Without their help this .
.project would not have seen the light of day
This project is designed to develop the skills that allow students to create
safe and efficient quality Paint Application
RATIONALE -
LITERATURE REVIEW-
The purpose of this review is to analyze and examine and obtain experience as
regards the creation and archival processing of Paint Application. The review is based
on an exhaustive assessment of the literature on computerized Paint App , and
contains an overview of the main concepts.
ABSTRACT -
Paint applications are become famous thanks to Microsoft Paint, well known as
simply Paint or Paintbrush. It was a simple computer graphics application included
with all versions of Microsoft Windows.
We all have once used the MS-Paint in our childhood, and when the system was
shifted from desks to our palms, we started doodling on Instagram Stories, Hike,
WhatsApp, and many more such apps. In day-to-day life, if we want to create a
drawing we firstly require a Canvas to work upon. So, in our app, we will firstly
create a canvas where the user can draw his drawings. And for that, we need to create
a custom view where the user could simply drag the finger to draw the strokes.
Our Paint Application for Android will offer the following features to users :
Draw paths with fingers on the screen
Normal mode
Emboss
mode Blur
mode
Clear option to remove all paths on the screen
Source Code –
- MainActivity.xml –
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.ssaurel.mypaint.MainActivity">
<com.ssaurel.mypaint.PaintView
android:id="@+id/paintView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
MainActivity.java –
import android.support.v7.app.AppCompatActivity;
import android.util.DisplayMetrics;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
paintView = (PaintView) findViewById(R.id.paintView);
DisplayMetrics metrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(met-
rics);
paintView.init(metrics);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater menuInflater = getMenuInflater();
menuInflater.inflate(R.menu.main, menu);
return super.onCreateOptionsMenu(menu);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch(item.getItemId()) {
case R.id.normal:
paintView.normal();
return true;
case R.id.emboss:
paintView.emboss();
return true;
case R.id.blur:
paintView.blur();
return true;
case R.id.clear:
paintView.clear();
return true;
}
return super.onOptionsItemSelected(item);
}
}
PaintView.Java -
package com.ssaurel.mypaint;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BlurMask-
Filter;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.EmbossMask-
Filter;
import android.graphics.MaskFilter;
import android.graphics.Paint;
import android.graphics.Path;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.view.MotionEvent;
import android.view.View;
import java.util.ArrayList;
mPaint.setStyle(Paint.Style.STROKE);
mPaint.setStroke-
Join(Paint.Join.ROUND);
mPaint.setStroke-
Cap(Paint.Cap.ROUND);
mPaint.setXfermode(null);
mPaint.setAlpha(0xff);
mEmboss = new EmbossMask-
Filter(new float[] {1, 1, 1}, 0.4f,
6, 3.5f);
mBlur = new BlurMask-
Filter(5, BlurMaskFilter.Blur.NOR-
MAL);
}
mBitmap = Bitmap.createBit-
map(width, height, Bitmap.Con-
fig.ARGB_8888);
mCanvas = new Canvas(mBit-
map);
currentColor = DE-
FAULT_COLOR;
strokeWidth = BRUSH_SIZE;
}
normal();
invalidate();
}
@Override
protected void onDraw(Canvas
canvas) {
canvas.save();
mCanvas.drawColor(back-
groundColor);
mPaint.setColor(fp.color);
mPaint.set-
StrokeWidth(fp.strokeWidth);
mPaint.setMask-
Filter(null);
if (fp.emboss)
mPaint.setMask-
Filter(mEmboss);
else if (fp.blur)
mPaint.setMask-
Filter(mBlur);
mCanvas.draw-
Path(fp.path, mPaint);
}
canvas.drawBitmap(mBitmap,
0, 0, mBitmapPaint);
canvas.restore();
}
mPath.reset();
mPath.moveTo(x, y);
mX = x;
mY = y;
}
@Override
public boolean onTouchEvent(Mo-
tionEvent event) {
float x = event.getX();
float y = event.getY();
switch(event.getAction()) {
case MotionEvent.AC-
TION_DOWN :
touchStart(x, y);
invalidate();
break;
case MotionEvent.AC-
TION_MOVE :
touchMove(x, y);
invalidate();
break;
case MotionEvent.AC-
TION_UP :
touchUp();
invalidate();
break;
}
return true;
}
}
Output of Project -
After Open This App user can draw paintings. The right side of screen
There is a Menu of Brush Stroke like – Normal , Emboss , Blur etc…
After that user can also clear their painting work on this application.
Future Scope –
1. This software is useful because it is friendly, simple, fast, and cost – effective.
2. It is used to operate all the functionalities of painting tool.
3. The program has always been free and users have never had to pay for upgrades,
enhancements or bug fixes.
Conclusion –
Our project is on Paint Application Using Android .We have successfully
completed it. We take this opportunity to express our sense of indebtedness and
gratitude to group members.
We are immensely grateful to esteemed project guide Kiran Baviskar Mam
guidance without which this work would not have been possible. This project
and implementation has contributed a lot to our knowledge that has proved to
be a value addition to us.
Reference
https://www.google.com
https://www.youtube.com
https://www.github.com
https://www.geeksfoígeeks.com
Skill Developed