android-bitmap

    0熱度

    1回答

    我試圖切換活動。每個活動只有一個圖像視圖,所以我沒有發現它需要顯示xml。這是一個相對簡單的程序。根據IF-STATEMENT,程序應切換到適當的視圖。所有圖像都是72dpi jpegs。 package app.com.example.android.chancetheoracle; import android.content.Intent; import android.s

    1熱度

    2回答

    所以我有這樣的代碼獲取圖像與mediastore: int dataIndex = mMediaStoreCursor.getColumnIndex(MediaStore.Files.FileColumns.DATA); mMediaStoreCursor.moveToPosition(position); String dataString = mMediaStoreCursor.getS

    0熱度

    4回答

    我已經在用戶選取從圖庫中的圖像的Activity,並設置在圓形ImageView這一形象, 這裏是我的部分代碼: public void loadImagefromGallery(View view) { Intent galleryIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.M

    0熱度

    1回答

    我正嘗試從互聯網上下載圖像並將其存儲在某個隱藏文件夾中,其中圖像對用戶在其畫廊中不可見。 這是我的代碼這樣做。只有當設備連接到互聯網時,圖像纔會顯示。換句話說,圖像沒有被保存在設備中,而是拋出了一個異常。 這裏是我ImageStorage類: package com.example.adhish.downloadretriveimage; import android.graphics.Bit

    0熱度

    2回答

    我正在研究一個小型的簡單遊戲,其中從頂部出來的障礙物有一個只能在x軸上移動的靜態球。當障礙物從頂部出來,用戶必須移動球以避免碰撞。 我一次放置3個移動障礙物,但我的問題是他們一起出來,即所有三個障礙物都具有相同的y軸值。我希望它以一定的距離一個接一個出來。 我該如何做到這一點。 這裏是我的GamePanel類: public class GamePanel extends SurfaceView

    1熱度

    1回答

    我想在Snapchat相機中製作實時濾鏡。這個應用程序基於Google Vision Face Tracker。 我在FaceGraphic.java這些下面的代碼: package com.google.android.gms.samples.vision.face.facetracker; import android.graphics.Canvas; import android.gr

    -2熱度

    3回答

    我有問題將字節數組轉換爲圖像,但它在ImageView。 當我推送發送應用程序關閉出錯,你會在那裏看到它。 所以我需要幫助。 我嘗試從java服務器發送圖像到android客戶端。 我已檢查收到的字節數組是否充滿字節,但我真的無法將其轉換。 這裏是我的代碼: Android客戶端 package com.example.metalheadi.convert2; import android.gr

    0熱度

    2回答

    我試圖填補Bitmap裏面白色的圓,更具體: 我已經例如這個Bitmap: 而且我想這一點: 我已經使背景灰色的理解圖像。 我用這個方法,但它不會讓我想要什麼.. public static Bitmap getRoundedBitmap(Bitmap bitmap) { final Bitmap output = Bitmap.createBitmap(bitmap.getWidth

    -2熱度

    1回答

    當我嘗試獲取位圖時,我正在接受一個nullpointerexpression。 ImageLoader imageLoader = ImageLoader.getInstance(); Bitmap bmp = null; bmp = imageLoader.loadImageSync("http://i.imgur.com/tx41HBE.jpg"); 調用imageLoader.loa

    0熱度

    1回答

    我有我的當前壁紙的位圖。我需要裁剪它以在佈局背後設置。我面臨的主要問題是該位圖的裁剪。 這是我的代碼。 Bitmap icon = utiles.drawableToBitmap(wallpaperDrawable); blurredBitmap = BlurBuilder.blur(this, icon); public void drawBlurImage() {