私はSDカードまたはカメラから写真を撮ることができるAndroidアプリを作成したいと思います。写真を撮った後、写真にテキストを追加したり、写真をトリミングしたり、.gifタイプのファイルを写真に追加したりするなど、編集する必要があります。写真を撮ることは問題ではありませんが、写真を編集するコードを書く方法を理解できません。私はこのためにOpenGLを使用する必要があるかどうかを知る必要があります。提案や役に立つリンクが必要です。Android Image Editor
23
A
答えて
52
あなたの質問はあまりにも曖昧です。私はいくつかのガイドを提供します。
- を使用しています。
Aviary SDKは、Creative SDKになります。 iOSとWindowPhone7もサポートしています。アビエイターは、オリエンテーション、トリミング、シャープネス、赤目、白とびび、ステッカー、ドローイング、テキスト、ミーム(ベータ)、明るさ、彩度、コントラスト、カスタムオプションなどの機能をほとんど提供します。 。アドビ によって
- Fotor SDK
Creative SDKは、直接ビットマップを処理します。import android.graphics.Bitmap; public class ProcessingImage { private Bitmap defaultImg; private int idBitmap; public int getIdBitmap() { return idBitmap; } public void setIdBitmap(int idBitmap) { this.idBitmap = idBitmap; } public Bitmap getDefaultImg() { return defaultImg; } public void setDefaultImg(Bitmap defaultImg) { this.defaultImg = defaultImg; } public ProcessingImage() { } public Bitmap processingI(Bitmap myBitmap) { return myBitmap; } public Bitmap TintThePicture(int deg, Bitmap defaultBitmap) { int w = defaultBitmap.getWidth(); int h = defaultBitmap.getHeight(); int[] pix = new int[w * h]; defaultBitmap.getPixels(pix, 0, w, 0, 0, w, h); double angle = (3.14159d * (double) deg)/180.0d; int S = (int) (256.0d * Math.sin(angle)); int C = (int) (256.0d * Math.cos(angle)); int r, g, b, index; int RY, BY, RYY, GYY, BYY, R, G, B, Y; for (int y = 0; y < h; y++) { for (int x = 0; x < w; x++) { index = y * w + x; r = (pix[index] >> 16) & 0xff; g = (pix[index] >> 8) & 0xff; b = pix[index] & 0xff; RY = (70 * r - 59 * g - 11 * b)/100; BY = (-30 * r - 59 * g + 89 * b)/100; Y = (30 * r + 59 * g + 11 * b)/100; RYY = (S * BY + C * RY)/256; BYY = (C * BY - S * RY)/256; GYY = (-51 * RYY - 19 * BYY)/100; R = Y + RYY; R = (R < 0) ? 0 : ((R > 255) ? 255 : R); G = Y + GYY; G = (G < 0) ? 0 : ((G > 255) ? 255 : G); B = Y + BYY; B = (B < 0) ? 0 : ((B > 255) ? 255 : B); pix[index] = 0xff000000 | (R << 16) | (G << 8) | B; } } Bitmap bm = Bitmap.createBitmap(w, h, defaultBitmap.getConfig()); bm.setPixels(pix, 0, w, 0, 0, w, h); pix = null; return bm; } }
使用法:プロセスインディゴカラー:
TintThePicture(180, myBitmap);
プロセスグリーン色:TintThePicture(300, myBitmap);
- 使用android.media.effectが(API14
- Effect Pro
- Android-Image-Edit
- android-image-editor
- smartcrop-androidで提供されるこのライブラリますアナいくつかの特徴を計算することによって最良の作物の位置とサイズを溶解する。顔、肌の色合い、顔立ち、顔)
関連する問題
- 1. Silverlight Image Editorコントロール
- 2. Image EditorにTypekitを組み込む
- 3. JQueryを使用したJava Image Editor
- 4. SwiftのAdobe Creative Image Editorの統合
- 5. PHP Editor for Android?
- 6. Android Constraint Layout Editor問題
- 7. CSS Class属性をStandard Umbraco Image Editorに追加する
- 8. 出力をソースコードとしてレンダリングするJava Image Editor?
- 9. Android Image to Base64
- 10. Image over alertdialog - android
- 11. android sdk imageホットスポット?
- 12. Android Crop Image Crash
- 13. Cool android image view
- 14. Android Image Sizing
- 15. Android and drawing image
- 16. android map image
- 17. Android Image Resizing
- 18. Android Blurry image
- 19. kivy android share image
- 20. Android Image Processingiing
- 21. Clickable image - android
- 22. Android listview image lag
- 23. Android Drawable Image Caching
- 24. Android - Canvas save image(CLOSE)
- 25. Image from StorageReference Firebase-Android
- 26. Android base64 string as image
- 27. android draw image in line
- 28. Android Picasso auto rotate image
- 29. ImageView Android Image resourse resize
- 30. Android Upload Image Progress Bar
他の種類のオープンソースの例はありますか? –