Makes the image for an artwork channel (issue #325, K15): the cover at an address, scaled to fit the declared width and height, centred on black, encoded as JPEG or PNG (see ArtworkLayout).
More...
|
| byte[] | encode (String url, String format, int width, int height) throws IOException |
| |
Makes the image for an artwork channel (issue #325, K15): the cover at an address, scaled to fit the declared width and height, centred on black, encoded as JPEG or PNG (see ArtworkLayout).
The Android side does the bitmap work; the tests use a fake.
◆ encode()
| byte[] de.yaacc.sendspin.control.ArtworkEncoder.encode |
( |
String | url, |
|
|
String | format, |
|
|
int | width, |
|
|
int | height ) throws IOException |
- Parameters
-
- Returns
- the encoded image of exactly
width by height, or null if there is none (not reachable, not an image, too big); may block, so it is called off the connection's thread
- Exceptions
-
| IOException | if the cover could not be read |
The documentation for this interface was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/sendspin/control/ArtworkEncoder.java