Redmi Note 5 Specification And Price

Image
See the Redmi Note 5 Specification And Price

Display


18:9 Full screen displayCustom display with rounded corners
Procesor & Memory

Octa-core processorSnapdragon 625 2.0GHz maxAdreno 506Dimensions
Height: 158.5mmWidth: 75.45mmThickness: 8.05mmWeight: 180g

Display
18:9 Full screen display15.2cm (5.99) (diagonally)18:9 screen aspect ratio2160 x 1080 FHD+ resolution, 403 PPI, 1000:1 contrast ratio450 nits brightness84% of NTSC color gamutSunlight displayNight displayReading modeColor temperature adjustmentStandard mode
Battery
4000mAh (typ) / 3900mAh (min)Non-removable5V/2A
Camera & Video
12MP rear camera12MP, 1.25μm large pixel5-element lens, ƒ/2.2 apertureDual LED flashPDAFLow light enhancementHDRPanoramaBurst modeFace recognition5MP front cameraBeautify 4.0Selfie-lightSelfie countdownFace recognition1080p/720p video, 30fps
Networks & Connectivity
Supports 802.11a/b/g/n protocolsSupports 2.4 / 5G WiFi / WIFI Direct / WiFi DisplayBluetooth 4.2, Bluetooth HID4G dual SIM:
3-choose-2 hybrid S…

Image compression using java

There are no specific API is available for compressing the images.

Supported format files are JPG (Joint Photography Experts Group) and PNG (Portable Network Graphics)
  • Download Jar (Java Archive) which is developed by Java Query API
  • Create a instance using ImageResize Class and using that object call the method compressImage
Sample

ImageResize ir = new ImageResize();
 ir.compressImage("Source Location", "Destination ", width, height);

String Parameter: Source Location and Destination
Integer Parameter: width and height

Parameters Description:

·         1st Parameter : Source Location , Example c:\\demo\\image.jpg
·         2nd Parameter : if you mention “default” then it will compress the original image and if you mention the destination location then it will create a new compressed image
·         3rd Parameter  & 4th Parameter : if you enter 0 for both then image resolution will not change but if you mention some value greater than 0 then image resolution will be changed.

That’s it.  Thanks to the Java Query API for implementing this API.

Popular posts from this blog

Gradle project sync failed. Basic functionality (e.g, editing, debugging) will not work properly.

How Automation Can Make You Better at Your Job

Best Expense Manager App For Your Android Phone