Android Programming Press on the image to return to the main documentation page.

ICOSGraphics

Written by Giuseppe Salvi

List of types:

ICOSGraphics

ICOSGraphics


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Permissions:

android.permission.SET_WALLPAPER

Events:

None

Members:


  Boost (Type As Int, Percentage As FloatAs android.graphics.Bitmap

  Emboss (Factor As Int, Offset As IntAs android.graphics.Bitmap

  Engrave (Factor As Int, Offset As IntAs android.graphics.Bitmap

  FastBlur (radius As IntAs android.graphics.Bitmap

  FlipBitmap (Type As IntAs android.graphics.Bitmap

  GaussianBlur (BlurValue As DoubleAs android.graphics.Bitmap

  Gravity_BOTTOM As Int

  Gravity_CENTER As Int

  Gravity_TOP As Int

  ImageRotate (RotateDegree As FloatAs android.graphics.Bitmap

  InitializeBitmap (bmp As android.graphics.Bitmap)

  IsInitialized As Boolean

  LENGTH_LONG As Int

  LENGTH_SHORT As Int

  Mirror As android.graphics.Bitmap

  MyToastBitmap (bmp As android.graphics.Bitmap, mGravity As Int, mDuration As Int)

  MyToastView (view As android.view.View, mGravity As Int, Duration As Int)

  RoundCorner (RoundValue As FloatAs android.graphics.Bitmap

  SepiaEffect (Depth As Int, Red As Double, Green As Double, Blue As DoubleAs android.graphics.Bitmap

  SetWalpaper (bmp As android.graphics.Bitmap)

  Smooth (Factor As Int, Offset As IntAs android.graphics.Bitmap

  Version As Double  [read only]

Members description:

Boost (Type As Int, Percentage As FloatAs android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
Type = 1 --> RED
Type = 2 --> GREEN
Type = 3 --> BLUE
ImageView1.Bitmap=ip.Boost(LoadBitmap(File.Dirassets , "SomeFile.png" , Type , Percentage)
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap , Type , Percentage)
Emboss (Factor As Int, Offset As IntAs android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
ImageView1.Bitmap=ip.Emboss(LoadBitmap(File.Dirassets , "SomeFile.png")
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap)
Engrave (Factor As Int, Offset As IntAs android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
ImageView1.Bitmap=ip.Engrave(LoadBitmap(File.Dirassets , "SomeFile.png")
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap)
FastBlur (radius As IntAs android.graphics.Bitmap
FlipBitmap (Type As IntAs android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Type = 1 --> FLIP_VERTICAL
Type = 2 --> FLIP_HORIZONTAL
Example:
ImageView1.Bitmap=ip.Flip(LoadBitmap(File.Dirassets , "SomeFile.png" , Type)
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap , type)
GaussianBlur (BlurValue As DoubleAs android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
ImageView1.Bitmap=ip.GaussianBlur(LoadBitmap(File.Dirassets , "SomeFile.png",BlurValue)
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap, BlurValue)
Gravity_BOTTOM As Int
Gravity_CENTER As Int
Gravity_TOP As Int
ImageRotate (RotateDegree As FloatAs android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
ImageView1.Bitmap=ip.Rotate(LoadBitmap(File.Dirassets , "SomeFile.png" , RotateDegree)
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap ,RotateDegree)
InitializeBitmap (bmp As android.graphics.Bitmap)
Initialize the Object.
Example:
Dim ip as ICOSImageProcessing
ip.Initialize("ip")
IsInitialized As Boolean
LENGTH_LONG As Int
LENGTH_SHORT As Int
Mirror As android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
ImageView1.Bitmap=ip.Mirror(LoadBitmap(File.Dirassets , "SomeFile.png"))
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap)
MyToastBitmap (bmp As android.graphics.Bitmap, mGravity As Int, mDuration As Int)
mGravity 1 = Gravity.TOP
mGravity 2 = Gravity.CENTER
mGravity 3 = Gravity.BOTTOM

mDuration 0 = Toast.LENGTH_SHORT
mDuration 1 = Toast.LENGTH_LONG

Dim ip as ICOSImageProcessing
Dim img As ImageView
Example:
Sub b1_Click
ip.MyToastBitmap(LoadBitmap(LoadBitmap(File.Dirassets , "SomeFile.png") , mGravity, mDuration)
End Sub
MyToastView (view As android.view.View, mGravity As Int, Duration As Int)
mGravity 1 = Gravity.TOP
mGravity 2 = Gravity.CENTER
mGravity 3 = Gravity.BOTTOM

Duration 0 = Toast.LENGTH_SHORT
Duration 1 = Toast.LENGTH_LONG

Dim ip as ICOSImageProcessing
Dim img As ImageView - ( You can use any view " (ImageView is just an examples) ")
Example:

Sub b1_Click
ip.MyToastView(img, mGravity, Duration)
End Sub
RoundCorner (RoundValue As FloatAs android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
ImageView1.Bitmap=ip.RoundCorner(LoadBitmap(File.Dirassets , "SomeFile.png" , RoundValue)
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap , RoundValue)
SepiaEffect (Depth As Int, Red As Double, Green As Double, Blue As DoubleAs android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
ImageView1.Bitmap=ip.SepiaEffect(LoadBitmap(File.Dirassets , "SomeFile.png" ,Depth , Red , Green , Blue)
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap ,Depth , Red , Green , Blue)
SetWalpaper (bmp As android.graphics.Bitmap)
Dim ip as ICOSImageProcessing
Example:
Sub b1_Click
ip.setWalpaper(LoadBitmap(File.Dirassets , "SomeFile.png"))
End Sub
Smooth (Factor As Int, Offset As IntAs android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
ImageView1.Bitmap=ip.Smooth(LoadBitmap(File.Dirassets , "SomeFile.png" , SmoothValue)
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap ,SmoothValue)
Version As Double  [read only]
Return the version of this library
Top