Skip to content
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#3DDC84"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/ConstraintLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<Button
android:id="@+id/uploadimage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/dispimage"
android:layout_marginStart="40dp"
android:layout_marginTop="30dp"
android:text="@string/uploadimage" />
<Button
android:id="@+id/uploadtext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="220dp"
android:layout_marginTop="30dp"
android:layout_below="@+id/dispimage"
android:text="@string/uploadtext" />
<ImageView
android:id="@+id/dispimage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="185dp"
android:layout_marginTop="50dp"
android:contentDescription="@string/dispimage"
android:foregroundGravity="center"
app:srcCompat="@android:drawable/editbox_dropdown_light_frame" />
<!-- <ImageView-->
<!-- android:id="@+id/histogramView"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginStart="185dp"-->
<!-- android:layout_marginTop="20dp"-->
<!-- android:layout_below="@+id/dispimage"-->
<!-- android:contentDescription="@string/histogramView"-->
<!-- android:foregroundGravity="center"-->
<!-- app:srcCompat="@android:drawable/editbox_dropdown_light_frame" />-->
<Button
android:id="@+id/resize"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="100dp"
android:layout_marginTop="10dp"
android:layout_below="@+id/uploadimage"
android:text="@string/resize" />
<Button
android:id="@+id/rotate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="220dp"
android:layout_marginTop="10dp"
android:layout_below="@+id/uploadtext"
android:text="@string/rotate" />
<EditText
android:id="@+id/angle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="number"
android:layout_marginStart="220dp"
android:layout_below="@+id/rotate"
android:padding="16dp"
android:text="@string/angle"
android:layout_marginTop="10sp"/>
<EditText
android:id="@+id/edit_height"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="number"
android:layout_marginStart="70dp"
android:layout_below="@+id/resize"
android:text="@string/edit_height"
android:padding="16dp"
android:layout_marginTop="10sp"/>
<EditText
android:id="@+id/edit_width"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="number"
android:layout_marginStart="80dp"
android:layout_below="@+id/edit_height"
android:text="@string/edit_width"
android:padding="16dp"
android:layout_marginTop="10sp"/>
<Button
android:id="@+id/imageblur"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/edit_width"
android:layout_marginStart="60dp"
android:layout_marginTop="10dp"
android:text="@string/blur" />
<Button
android:id="@+id/zeroGB"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/angle"
android:layout_marginStart="220dp"
android:layout_marginTop="75dp"
android:text="@string/zeroGB" />
<Button
android:id="@+id/grayscale"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/imageblur"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:text="@string/grayscale" />
<Button
android:id="@+id/recolor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/zeroGB"
android:layout_marginStart="220dp"
android:layout_marginTop="10dp"
android:text="@string/recolor" />
<Button
android:id="@+id/histogram"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/grayscale"
android:layout_marginStart="60dp"
android:layout_marginTop="10dp"
android:text="@string/histogram" />
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp">
<EditText
android:id="@+id/edit_height"
android:layout_width="match_parent"
android:layout_height="48dp"
android:hint="@string/edit_height"
android:inputType="number"
android:importantForAutofill="no" />
<EditText
android:id="@+id/edit_width"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_below="@+id/edit_height"
android:layout_alignParentStart="true"
android:hint="@string/edit_width"
android:inputType="number"
android:importantForAutofill="no" />
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
\ No newline at end of file
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.ImageFilterer" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_200</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/black</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_200</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
</style>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="baby_blue">#89CFF0</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<color name="bg_black1">#303030</color>
<color name="bg_black2">#1c1c1c</color>
<color name="element_black">#494949</color>
<color name="element_white">#d3d8e3</color>
</resources>
\ No newline at end of file
<resources>
<string name="app_name">Image Filterer</string>
/**
* Declaring strings to be used for GUI
* @author Daniellia Sumigar
**/
// BUTTON NAMES
<string name="uploadimage">Upload Image</string>
<string name="uploadtext">Upload Text</string>
<string name="resize">Resize</string>
<string name="recolor">Recolor</string>
<string name="rotate">Rotate</string>
<string name="blur">Apply Blur</string>
<string name="grayscale">Apply Grayscale</string>
<string name="zeroGB">Zero GB</string>
// DISPLAY FEATURES
<string name="dispimage">Image </string>
<string name="dispimageproperties">Display Image Properties</string>
<string name="histogram">Histogram </string>
<string name="histogramView">Display Histogram</string>
// RESIZE STRINGS
<string name="edit_height">Edit Height</string>
<string name="edit_width">Edit Width </string>
// ROTATE STRINGS
<string name="angle">Edit Angle </string>
//ACCEPT FILE STRINGS
<string name="error_positive_integers">Error Positive Integers</string>
<string name="error_expected_lines">%d%%</string>
<string name="error_three_integers">%s%%</string>
<string name="error_invalid_value">%d%%</string>
<string name="file_meets_requirements">%s%%</string>
<string name="error_reading_file">%s%%</string>
<string name="error_parsing_integer">%s%%</string>
</resources>
\ No newline at end of file
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.ImageFilterer" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_700</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
</style>
</resources>
\ No newline at end of file