Coder Social home page Coder Social logo

imageutil's Introduction

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

imageutil's People

Contributors

gordonlu310 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.