forked from marzika/Snapprefs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding the new saving method. 60% done :)
- Loading branch information
Showing
4 changed files
with
73 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.marz.snapprefs; | ||
|
||
import android.graphics.Bitmap; | ||
|
||
import java.io.FileInputStream; | ||
|
||
/** | ||
* Created by 723183 on 9/1/2015. | ||
*/ | ||
public class Snap { | ||
public Bitmap img; | ||
public FileInputStream vid; | ||
public Saving.MediaType mediaType; | ||
|
||
|
||
public Snap (Bitmap b, boolean overlay) { | ||
img = b; | ||
if(overlay) | ||
mediaType = Saving.MediaType.IMAGE_OVERLAY; | ||
else | ||
mediaType = Saving.MediaType.IMAGE; | ||
} | ||
|
||
public Snap (FileInputStream fis) { | ||
vid = fis; | ||
mediaType = Saving.MediaType.VIDEO; | ||
} | ||
|
||
public Bitmap getImage() { | ||
return img; | ||
} | ||
|
||
public FileInputStream getVideo() { | ||
return vid; | ||
} | ||
|
||
public Saving.MediaType getMediaType() { | ||
return mediaType; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters