Skip to content

An App Inventor extension that provides additional tools to the built-in Image component

License

Notifications You must be signed in to change notification settings

gordonlu310-old/ImageUtil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ImageUtil

🖼️ Introduction

An App Inventor extension that provides additional tools to the built-in Image component.

Made by Gordon Lu (AICODE). For details, please read my website:

https://sites.google.com/view/appinventor-aicode/my-extensions/imageutil

📦 Package name: com.gordonlu.imageutil.aix

🕐 Version: 5

📅 Release date: March 8, 2022 2:00 PM

🍭 Minimum API: 19 (Android 4.4 KitKat)

📖 Documentation

Method blocks

ApplyGrayscaleAndFade

image

Applies grayscale effect to an image and fades the image.

Parameters: component = image

ApplyWatermark

image

Applies watermark text to the given image's content. Set the text of the watermark via the watermark parameter, and the x and y parameters are the co-ordinates of the watermark located on the image. The parameter color is the text color of the watermark, and alpha is the luminance of the watermark. The size parameter is the size of the watermark in points. Specify whether to underline the watermark via the underline boolean parameter. Use the blocks in the properties of this extension for the font parameter. If useCurrentFont is true, the font parameter will be ignored.

Parameters: image = component, watermark = text, x = number (int), y = number (int), color = color, alpha = number (int), size = number (int), underline = boolean, font = text, useCurrentFont = boolean

ColorBoost

194c8a5f4b80a6f0bd296fc6e7efc872d88047ed

Applies color boost to the content of the given content. To find out the type parameter, go to: https://shaikhhamadali.blogspot.com/2013/07/color-boost-imagebitmap-in-imageview.html. type should be a value, either 1, or 2, or 3.

Parameters: image = component, type = number (int), percent = number (float)

GammaEffect

image

Applies gamma effect to the given image.

Parameters: image = component, red = number (double), green = number (double), blue = number (double)

HueFilter

image

Sets the hue filter for the image, with the given level.

Parameters: image = component, level = number (int)

ImageAlpha

image

Returns: number (int)

Parameters: image = component

IsCroppedToPadding

image

Checks whether this image is cropped to padding.

Returns: boolean

Parameters: image = component

RoundCorners

image

Applies round corners to the Image, with the radius parameter as the radius of each corner.

Parameters: image = component, radius = number (int)

SepiaToningEffect

image

Turns the image to a Sephia Toned version of the image, by specifying the depth, red, green and blue parameters.

Parameters: image = component, depth = number (int), red = number (double), green = number (double), blue = number (double)

SetBrightness

image

Sets whether the image should crop to padding.

Parameters: image = component, cropToPadding = boolean

SetColorDepth

image

Sets the color depth of the image.

Parameters: image = component, bitOffset = number (int)

SetImageAlpha

image

Sets the alpha value that should be applied to the image.

Parameters: image = component, alpha = number (int)

SetImageTintColor

image

Change the image tint color. You can use too alpha values if you want with the 'make a list' block. Do not forget to use the 'make color' block together with the 'make a list' block.

Parameters: image = component, tint = color

SetPadding

image

Sets the padding of the given image.

Parameters: image = component, left = number (int), top = number (int), right = number (int), bottom = number (int)

UndoGrayscaleAndFade

image

Undos the grayscale and fade effects applied with the AplyGrayscaleAndFade method.

Parameters: image = component

There are also some properties for the font parameter in the ApplyWatermark method.

image

About

An App Inventor extension that provides additional tools to the built-in Image component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages