Skip to content

Commit 3986dba

Browse files
committed
Add import statements to README
1 parent 9e758ae commit 3986dba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ The core of JpegKit is the Jpeg class. When creating an object of type `Jpeg`, t
4949
First, create a `Jpeg`:
5050

5151
```java
52+
import jpegkit.Jpeg;
53+
54+
//...
55+
5256
byte[] jpegBytes = ...;
5357
Jpeg mJpeg = new Jpeg(jpegBytes);
5458
```
@@ -83,6 +87,10 @@ Create a `JpegImageView` in **xml** as follows.
8387
Access and set the JPEG from your Activity as follows.
8488

8589
```java
90+
import jpegkit.JpegImageView;
91+
92+
//...
93+
8694
JpegImageView jpegView = findViewById(R.id.jpegView)
8795
jpegView.setJpeg(mJpeg);
8896
```

0 commit comments

Comments
 (0)