Class LocationPhoto
- java.lang.Object
-
- com.cmput301w23t09.qrhunter.locationphoto.LocationPhoto
-
public class LocationPhoto extends java.lang.ObjectStores the location photo that a player took of a QRCode
-
-
Constructor Summary
Constructors Constructor Description LocationPhoto(android.graphics.Bitmap bitmap, Player player)This initializes a Photo with an image of a QRCode and the player that took itLocationPhoto(androidx.camera.core.ImageProxy image, Player player)This initializes a Photo with an image of a QRCode and the player that took it
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.graphics.BitmapgetPhoto()This returns the image as a bitmap, ready to be displayed by an ImageViewPlayergetPlayer()This returns the player who took the photovoidsetPhoto(android.graphics.Bitmap bitmap)This sets the image of the photo, given a BitmapvoidsetPhoto(androidx.camera.core.ImageProxy image)This sets the image of the photo, given an ImageProxy
-
-
-
Constructor Detail
-
LocationPhoto
public LocationPhoto(android.graphics.Bitmap bitmap, Player player)This initializes a Photo with an image of a QRCode and the player that took it- Parameters:
bitmap- The location image of the QRCode, as a Bitmap typeplayer- This is the player that took the photo
-
LocationPhoto
public LocationPhoto(androidx.camera.core.ImageProxy image, Player player)This initializes a Photo with an image of a QRCode and the player that took it- Parameters:
image- The location image of the QR Code, as an ImageProxy typeplayer- This is the player that took the photo
-
-
Method Detail
-
getPhoto
public android.graphics.Bitmap getPhoto()
This returns the image as a bitmap, ready to be displayed by an ImageView- Returns:
- Return the photo
-
getPlayer
public Player getPlayer()
This returns the player who took the photo- Returns:
- Return the player who took the photo
-
setPhoto
public void setPhoto(android.graphics.Bitmap bitmap)
This sets the image of the photo, given a Bitmap- Parameters:
bitmap- This is the bitmap to set photo to
-
setPhoto
public void setPhoto(androidx.camera.core.ImageProxy image)
This sets the image of the photo, given an ImageProxy- Parameters:
image- This is the image to set photo to
-
-