com.supermap.ar.areffect.scanner
Class HwImageScanner
- java.lang.Object
-
- com.supermap.ar.areffect.scanner.HwImageScanner
-
public class HwImageScanner extends java.lang.Object
Image scanning create by tanyunxiu 2020/12/22
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static interface
HwImageScanner.ImageListener
Image Listener
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description void
addImage(java.lang.String resourceName)
Add an image in assetsvoid
addImage(java.lang.String name, android.graphics.Bitmap img)
Add an imagevoid
addImage(java.lang.String resourceName, float widthInMeters)
Add an image in assetsvoid
addImageListener(HwImageScanner.ImageListener listener)
Add listenervoid
disposeImageListener()
Destroy listener Remove the listener and empty itstatic HwImageScanner
getInstance(HmsAREffectView arEffectView)
void
init()
Deprecated.void
removeImageListener()
Remove the listener from the AR scenario Note: Not null
-
-
-
Method Detail
-
getInstance
public static HwImageScanner getInstance(HmsAREffectView arEffectView)
- Parameters:
arEffectView
-- Returns:
-
addImage
public void addImage(java.lang.String resourceName)
Add an image in assets- Parameters:
resourceName
-
-
addImage
public void addImage(java.lang.String resourceName, float widthInMeters)
Add an image in assets- Parameters:
resourceName
-
-
addImage
public void addImage(java.lang.String name, android.graphics.Bitmap img)
Add an image- Parameters:
name
-img
-
-
addImageListener
public void addImageListener(HwImageScanner.ImageListener listener)
Add listener- Parameters:
listener
-
-
init
@Deprecated public void init()
Deprecated.Initialize
-
removeImageListener
public void removeImageListener()
Remove the listener from the AR scenario Note: Not null
-
disposeImageListener
public void disposeImageListener()
Destroy listener Remove the listener and empty it
-
-