Skip to content

Commit 4eeb3a9

Browse files
Update README.md
1 parent 7fd503c commit 4eeb3a9

File tree

1 file changed

+40
-4
lines changed

1 file changed

+40
-4
lines changed

README.md

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ var ImageHelper: ImgHelper? = ImgHelper(this)
416416

417417
- ***GetThumbnail*** - *This method Will build thumbnail for the given image in custom width,height & AspectRatio.*
418418
```java
419-
//JAVA
419+
//JAVA
420420
Bitmap thumb = ImageHelper.GetThumbnail(ImageBitmap, 600, 600, true);
421421
/*
422422
Bitmap GetThumbnail(
@@ -433,6 +433,7 @@ var ImageHelper: ImgHelper? = ImgHelper(this)
433433
```
434434
- ***CompressToJPEG*** - *This method will Compress the provided bitmap image and will save to given path..*
435435
```java
436+
//JAVA
436437

437438
Boolean Iscompressed = ImageHelper.CompressToJPEG(bitmap,outputFilePath);
438439
/*
@@ -441,46 +442,81 @@ var ImageHelper: ImgHelper? = ImgHelper(this)
441442

442443
*/
443444
```
445+
```kotlin
446+
//KOTLIN
447+
var thumb = ImageHelper!!.CompressToJPEG(bitmap, outputFilePath);
448+
449+
```
444450

445451
- ***rotateBitmap*** - *This method will rotate the image to preferred orientation.*
446452
```java
447-
453+
//JAVA
448454
Bitmap rotatedBm = ImageHelper.rotateBitmapDegree(nBm, RotationDegree);
449455
/*
450456
Bitmap rotateBitmapDegree(Bitmap bitmap,int Degree)
451457
throws ImgException
452458
*/
453459
```
460+
```kotlin
461+
//KOTLIN
462+
var thumb = ImageHelper!!.rotateBitmapDegree(bitmap, RotationDegree);
463+
464+
```
454465
- **GetTiffForLastCapture** - Build Tiff file output file from last captured set of images.
455466
```java
467+
//JAVA
456468
ImageHelper.GetTiffForLastCapture(outPutFileWithpath);
457469
//on success, will respond with string : "SUCCESS:::TiffFilePath";
458470
//use ":::" char. key to split the response.
459471
//on failure,will respond with string : "FAILED:::Reason for failure";
460472
//use ":::" char. key to split the response.
461473
//on failure, error details can collect from CameraSupport.CamConfigClass.LastLogInfo
462474
```
475+
```kotlin
476+
//KOTLIN
477+
var thumb = ImageHelper!!.GetTiffForLastCapture(outPutFileWithpath);
478+
479+
```
463480
- **GetPDFForLastCapture** - Build PDF file output file from last captured set of images.
464481
```java
482+
//JAVA
465483
ImageHelper.GetPDFForLastCapture(outPutFileWithpath);
466484
//on success, will respond with string : "SUCCESS:::PdfFilePath";
467485
//use ":::" char. key to split the response.
468486
//on failure,will respond with string : "FAILED:::Reason for failure";
469487
//use ":::" char. key to split the response.
470488
//on failure, error details can collect from CameraSupport.CamConfigClass.LastLogInfo
471489
```
490+
```kotlin
491+
//KOTLIN
492+
var thumb = ImageHelper!!.GetPDFForLastCapture(outPutFileWithpath);
493+
494+
```
472495
- **BuildTiff** - Build .tiff file output from the list of images shared.
473496
```java
474-
ImageHelper.BuildTiff(ArrayList<String> ImageCol, String OutputTiffFilePath)
475-
*@param "Image File path collection as ArrayList<String>"
497+
//JAVA
498+
ImageHelper.BuildTiff(ImageCol,OutputTiffFilePath)
499+
*@param "Image File path collection as ArrayList<String>"
500+
*@param "Output Tiff FilePath as String.
476501
*@return on failure = "FAILED:::REASON" || on success = "SUCCESS:::TIFF file path".
477502
```
503+
```kotlin
504+
//KOTLIN
505+
var thumb = ImageHelper!!.BuildTiff(ImageCol,OutputTiffFilePath);
506+
507+
```
478508
- **BuildPDF** - Build PDF file output file from last captured set of images.
479509
```java
510+
//JAVA
480511
ImageHelper.BuildPDF(outPutFileWithpath);
481512
*@param "Image File path collection as ArrayList<String>"
482513
*@return on failure = "FAILED:::REASON" || on success = "SUCCESS:::PDF file path".
483514
```
515+
```kotlin
516+
//KOTLIN
517+
var thumb = ImageHelper!!.BuildPDF(ImageCol,OutputTiffFilePath);
518+
519+
```
484520

485521
## ImgException
486522
As a part of exceptional error handling **ImgException** class is available.

0 commit comments

Comments
 (0)