Questions tagged [bitmapimage]

A bitmap(BMP) is a raster graphics image file. It is also referred to as a Device Independent Bitmap (DIB).

900 questions
-1
votes
1 answer

Setting up onClickListener on bitmap images throws error

I started implementing touch controls to my android game (flappy bird type of clone) and I am having hard time making this work. I have implemented onTouchEvent that basically takes the whole screen and reacts to any touch but now I want to expand…
-1
votes
1 answer

Get transparency percentage of a bitmap

Update: Clemens's solution is the fastest. I'll leave the alternative I found just in case: While trying to create a minimal reproducible example as Peter Duniho suggested in the comment, I found that the wrong transparency values were coming from…
Tony Steel
  • 123
  • 1
  • 6
-1
votes
1 answer

Easiest & Most Efficient Way to Making a Bitmap Using For Loops

I've been stuck on this for awhile, I eventually gave up but can anyone lead me in the correct direction. Also side note, I need the final result to have alpha. static std::unique_ptr ImageData; if ( !ImageData) { …
Valena
  • 11
  • 4
-1
votes
1 answer

How to set the local folder image as BitmapImage source?

I am using the BitmapImage to set the image source. I tried https://learn.microsoft.com/en-us/dotnet/framework/wpf/graphics-multimedia/how-to-use-a-bitmapimage this way to set the local folder image to BitmapImage source, but the image not loaded.…
Santhiya
  • 191
  • 2
  • 14
-1
votes
2 answers

How to convert bitmap image to file format which I get from canvas in android

I make canvas view which I want to send in server using retrofit library. I get canvas view in bitmap format. Now I want to convert bitmap to file format so that I can upload in server in file format.
Sudip Sadhukhan
  • 1,784
  • 12
  • 21
-1
votes
1 answer

UWP App: `Image.SetSource` hangs computer on `StorageFiles` outside of `KnownPlaces`

This one is hard to explain, so I give you some actual and pseudo code: try { // If source (a string) points towards a file that is available with // StorageFile.GetFileFromPathAsync(), just open the file that way. // If that is not…
J. H.
  • 109
  • 9
-1
votes
1 answer

Image Converter not working

Can anyone explain why I am getting the error: A generic error occurred in GDI+ Here is the code: [ValueConversion(typeof(System.Drawing.Image), typeof(ImageSource))] public class ImageConverter : IValueConverter { public object…
g.b
  • 85
  • 3
-1
votes
2 answers

Store Image name in text view

This is my code for storing image in ImageView but i want to store image name in My TextView Object Please help how to do this. @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { …
-1
votes
1 answer

C++: rotate image BMP

I have some serious problems with this stupid rotation function of a BMP image... I've already post the same question now 2 days ago, I know... But no one could make me to understand what's happening here and how can I solve this issue. EDIT: that…
Mircea
  • 1,671
  • 7
  • 25
  • 41
-1
votes
2 answers

Curved Bottom part of Bitmap image Android

Good day guys.I want to make the bottom part of my own image an curved line.Not to talk back and forth here is an image which i want to get into the application. Important to notice that i have reached 10th result of the google and everything i came…
VA Entertaiment
  • 575
  • 2
  • 7
  • 20
-1
votes
3 answers

Camera Capture Image is not clear(Blurry) in Android

I Have a Problem with the Camera Capture Image.its set blurry. I searched lots of but i can't Get Solutions I don't know How to solve issue Here is My Code Which i Used For Camera Capture Image @Override public void onActivityResult(int…
-1
votes
1 answer

Text File to Bitmap in C Program

I'm very new in C programming and I am trying make a program that reads a text file and makes a black and white bmp out of it. I think my code is almost done, but I only get a black image. What am I missing or what'ss wrong? 0000000000 0000110000…
-1
votes
2 answers

DownloadImage when login

I've created an app where the user registers with his credentials and also uploads a profile picture. While logging the user enters his username,password and name of the image which he has uploaded. Till now the user is successfully able to register…
swapnil saraf
  • 73
  • 1
  • 1
  • 9
-1
votes
2 answers

Replace Color Gradient In Transparent Image

I have small function which will recolor pixels in a Bitmap from a given color to a new given color. The problems I have with the code are as follows: 1) The function gives results which are remapping white pixels which should not be concidered…
Jay
  • 3,276
  • 1
  • 28
  • 38
-1
votes
2 answers

BitmapImage not loading from resources in WPF 4.5

I am building a dynamic list of WPF MenuItem on WPF 4.5 on Windows 7. Building them and getting them to display a title is working fine. But I am not able to get them to load icons. I have found a few posts on the topic but none of them is solving…
Franck Dervaux
  • 121
  • 2
  • 12