-4
A
回答
0
獲取imagesService的一個實例,我們可以用它來改變圖片:
ImagesService imagesService = ImagesServiceFactory.getImagesService();
直接從字節數組製作的圖像,並將其轉換:
Image image = ImagesServiceFactory.makeImage(imageBytes);
Transform resize = ImagesServiceFactory.makeResize(100, 50);
Image resizedImage = imagesService.applyTransform(resize, image);
寫變換圖像回雲存儲對象:
gcsService.createOrReplace(
new GcsFilename(bucket, "resizedImage.jpeg"),
new GcsFileOptions.Builder().mimeType("image/jpeg").build(),
ByteBuffer.wrap(resizedImage.getImageData()));
相關問題
- 1. 從base64中獲取圖像字符串
- 2. 從hexa字符串獲取圖像
- 3. iOS:從HTML字符串獲取圖像
- 4. PHP:從base64字符串獲取圖像類型字符串
- 5. 從字符串獲取子字符串__
- 6. SWT圖像/從字符串
- 7. 從字符串獲取圖片網址
- 8. 從字符串獲取LCID
- 9. 從字符串獲取DateTime
- 10. 從字符串獲取URL
- 11. 從EditText獲取字符串
- 12. 從spinner獲取字符串
- 13. 從字符串獲取NSDate
- 14. PHP從字符串獲取
- 15. 從字符串獲取keyCode?
- 16. 從CodeBehind獲取字符串
- 17. 從字符串獲取JSONObject
- 18. 從Json獲取字符串
- 19. 從UILabel獲取字符串
- 20. 從字符串獲取值?
- 21. 從字符串中讀取字符或從字符串中獲取字符
- 22. 從字符串獲取特定字符
- 23. 如何從python PIL圖像對象獲取字符串數據?
- 24. PHP獲取圖像的所有URL的字符串從
- 25. 從base64字符串獲取圖像尺寸
- 26. iOS從一維圖像獲取消息字符串
- 27. 剛剛從字符串獲取圖像的URL在PHP
- 28. 從Java中的mimepart獲取圖像的base64內容字符串
- 29. 從base64編碼的字符串獲取圖像信息
- 30. 讓GD從二進制字符串中獲取圖像
您可以使用google自定義搜索API https://developers.google.com/cus tom-search/json-api/v1/overview#先決條件 – explv