The concept of brightness is rather simple, increasing/decreasing value of each R, G, B channel together. + By increasing: image results brighter. + By decreasing: image results darker.
Contrast is the difference in luminance and/or colour that makes an object (or its representation in an image or display) distinguishable. In visual perception of the real world, contrast is determined by the difference in the colour and brightness of the object and other objects within the same field of view.
Gamma correction or gamma encoding is one among the common image processing method Gamma correction, gamma nonlinearity, gamma encoding, or often simply gamma, is the name of a nonlinear operation used to code and decode luminance or tristimulus values in video or still image systems.
Inverts a bitmap. Every image pixel holds information of four channels: Alpha, Red, Green, Blue. However, Alpha doesn�t reflect the image color as display. So the value is kept, and take inversion for other three channels by formula: 0xFF � CurrentValue.
Decreasing color depth involves converting to standard values. For example: if I want to offset 32, then each image color channel will apply the range: 0, 31, 63 �
Sepia-toning effect is used very commonly in photography. It is the process of changing the intensity on every pixel color of a gray-scale image, or so-called black-and-white.
Adds a snow-like effect to the bitmap. Opposite of Black Filter Sets all pixels having R,G,B values to the max (0xFF) when they�re greater than threshold, then we have the Snow Effect.
Base on randomizing image pixels, another filter is created, named �Black Filter�, or enhance the noise of darkness. The algorithm is to generate a threshold number (0-255), if all R,G,B values of a pixel are less than the threshold, then set the pixel to black.
Write a compressed version of the bitmap to the specified outputstream.
format The format of the compressed image quality Hint to the compressor, 0-100. 0 meaning compress for small size, 100 meaning compress for max quality. Some formats, like PNG which is lossless, will ignore the quality setting stream The outputstream to write the compressed data.
Creates a new bitmap, scaled from an existing bitmap. src The source bitmap. dstWidth The new bitmap's desired width. dstHeight The new bitmap's desired height. filter true if the source should be filtered. Return type: @return:the bitmap
Returns an immutable bitmap from the specified subset of the source bitmap. The new bitmap may be the same object as source, or a copy may have been made. It is initialized with the same density as the original bitmap. source: x: y: width: height: Return type: @return:
Returns an immutable bitmap from the specified subset of the source bitmap. The new bitmap may be the same object as source, or a copy may have been made. It is initialized with the same density as the original bitmap. source: x: y: width: height: Return type: @return:
Gets the new destination width or height keeping the aspect ratio of the image. src: - bitmap destination: -Source width or height Return type: @return:
Returns the Color at the specified location. Throws an exception if x or y are out of bounds (negative or >= to the width or height respectively). bitmap: x: The x coordinate (0...width-1) of the pixel to return y: The y coordinate (0...height-1) of the pixel to return Return type: @return:The argb Color at the specified coordinate
Returns true if the bitmap's config supports per-pixel alpha, and if the pixels may contain non-opaque alpha values. For some configs, this is always false (e.g. RGB_565), since they do not support per-pixel alpha. However, for configs that do, the bitmap may be flagged to be known that all of its pixels are opaque. In this case hasAlpha() will also return false. If a config such as ARGB_8888 is not so flagged, it will return true by default. bitmap: Return type: @return:
Initialize
Initializes the RSSImageProcessing Library. EventName - Events subs prefix.
Returns true if this bitmap has been recycled. If so, then it is an error to try to access its pixels, and the bitmap will not draw. bitmap: Return type: @return:true if the bitmap has been recycled
JPEGAsString
PNGAsString
recycle (bitmapAsandroid.graphics.Bitmap)
Free the native object associated with this bitmap, and clear the reference to the pixel data. This will not free the pixel data synchronously; it simply allows it to be garbage collected if there are no other references. The bitmap is marked as "dead", meaning it will throw an exception if getPixels() or setPixels() is called, and will draw nothing. This operation cannot be reversed, so it should only be called if you are sure there are no further uses for the bitmap. This is an advanced call, and normally need not be called, since the normal GC process will free up this memory when there are no more references to this bitmap. bitmap: