writablebitmap

    0熱度

    1回答

    創建位圖需要更新後臺代理中活動瓦片的一種好方法是什麼?在UI線程中,您使用writeableBitmap類,但這在non-ui線程中不起作用。後臺代理中有很多tile的例子,但它們都使用以前在UI中創建的位圖。有任何想法嗎?謝謝。

    0熱度

    1回答

    我試圖在Windows Phone 8中使用WriteableBitmap更改圖像的顏色。基本上,我有一個帶有黑色和透明背景的圖標(png)。我試圖把它與透明背景轉換爲白色如下: StreamResourceInfo sri = Application.GetResourceStream(new Uri(value.ToString(), UriKind.Relative)); BitmapIm

    -2熱度

    1回答

    我想打印一些段落,並使用流文件的圖像,如圖代碼如下 Paragraph invoiceID = new Paragraph(new Run("Invoice No : "+ txtInvoiceID.Text)); Paragraph qty001 = new Paragraph(new Run("Quantity : " + qtyText.Text)); Paragraph date001

    1熱度

    1回答

    有沒有簡單的方法將變量WriteableBitmap的內容保存到IsolatedStorageFile?我正在編寫一個處理WriteableBitmap中的像素的程序,然後將處理後的位圖保存爲文件* .bmp並將其存儲在「保存的圖片」目錄中。我有將WriteableBitmap保存爲jpeg文件的代碼,但正如我之前所說的,我不想以任何方式壓縮圖形。請幫我解決我的問題。 private void S

    0熱度

    1回答

    如何通過使用可寫位圖從Windows應用商店中的圖像獲取RGB顏色百分比。 在Windows應用程序,我得到它前面是這樣的: public static Color getDominantColor(Bitmap bmp) { //Used for tally int r = 0; int g = 0; int b = 0; int

    9熱度

    1回答

    我想將BitmapSource的一部分複製到WritableBitmap。 這是到目前爲止我的代碼: var bmp = image.Source as BitmapSource; var row = new WriteableBitmap(bmp.PixelWidth, bottom - top, bmp.DpiX, bmp.DpiY, bmp.Format, bmp.Palette); r

    0熱度

    1回答

    我有幾個圖像,每個圖像放置在writablebitmap。每個圖像代表一個圖層,每個圖像都包含透明度。我需要將這些圖像合併爲一個,合併算法:顯示第一個圖像(無變化),然後繪製第二個圖像,首先用附加透明度X%,在第三個圖像之後添加透明度Y%等。 對於工作i使用框架4.5,編程語言C#和VS2012。 感謝您的幫助。