901 questions
-1
votes
1
answer
210
views
Minimalist load and draw BMP file in Win32?
I'm looking for a minimalist way to load and draw a bitmap in the context of the WIN32 graphics interface. No GDI+, no extra libraries please.
It looks like LoadBitmapA would be the right function to ...
0
votes
2
answers
125
views
Remove Black Background from BitmapImage WinUI 3
First time app developer, I am trying to remove the black from the back of a scanned image. This image is sent by multiple different scanners and saved to the desktop as a PNG. I am trying to take ...
0
votes
1
answer
132
views
Drawing a rectangle over a WPF image to generate a CroppedBitmap of it - Skewed Results (C#)
I'm working on an app feature where the user selects a portion of an image I have displayed by drawing a rectangle over it,
And then the cropped part of the image pops up in another Image control in ...
1
vote
0
answers
92
views
Cannot access BitmapImage from async Task [duplicate]
I have code which generates an image doing lots of things, so I run it as async Task. After the generation is completed the image should be displayed in the Image WPF element. But I get System....
0
votes
1
answer
301
views
The OpenStreetMap tile layer image was not displayed when added in Image control in UWP
I was trying to display the image of tile layer for OpenStreetMap using the Image control in the UWP platform, but the tile layer was displayed or displayed blank.
Here is my code.
In the MainPage....
1
vote
1
answer
402
views
How can I convert a 256-color bitmap image to DB format?
I'm looking for a way to convert a 256-color bitmap image into an ASM file that contains inside many DB commands with a sequence of BYTES.
I create a bitmap with 256 colors and a resolution of 320x200 ...
0
votes
1
answer
197
views
Why does RenderOptions.BitmapScalingMode affect a line appearing in my WPF bitmapImage?
I have a wpf application that displays a bitmapImage in an image control that is inside a viewbox. I use binding to set the image to a bitmapImage object that I create within the code. After creating ...
0
votes
0
answers
43
views
If you call multiple BitmapImages at once, some of them get stuck in the download process, and the image won't be displayed in the UI
I have multiple Images in my Window. Every single one of them download another image at the same time.
<Image Source="{Binding Converter={StaticResource cachedImgConv},IsAsync=True}" ...
-1
votes
1
answer
76
views
My app doesn't run on Android Studio, I get: E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException
This is my code:
package edu.huflit.comicsapp1;
public class App extends Application {
public static ArrayList<Comics> data;
@Override
public void onCreate() {
super....
-1
votes
1
answer
113
views
Bitmap Image not changed c#
I have an area in my wpf project that should display an image by link.
The image on the link changes with a certain frequency. My code:
string path1 = @"";//link from image
image_1.Source = ...
0
votes
1
answer
119
views
How to copy from screen 9 different Images using C#?
I'm doing a school project using C# in which I designed a Form in C# that I can draw on and now I need to copy what I draw into a 9 different Images and save them. So far, I tried using the copy from ...
-1
votes
3
answers
268
views
How to convert base64 string to BitmapImage?
I'm reading data from a blob in MySQL in Base64 String.
I want to convert this to a BitmapImage.
I've tried many ways, but without success.
Here is an example:
public static BitmapImage ...
0
votes
1
answer
86
views
UWP : create a BitmapImage with a google photo api uri/url - (Exception from HRESULT: 0x88982F50)
i am trying to display an image (in an UWP App) from my google photo online storage.(google photos api)
When i query the photos i get an json with the following content
{
"id": "...
0
votes
2
answers
644
views
How do I display a resource property image in <Image>?
I'm trying to display an image I have saved as a resource under the properties category.
This property however returns a byte[] which can't be displayed by <Image> since it can't convert it to ...
0
votes
0
answers
83
views
Windows.h GDI - BITMAPINFO alloca indicates failure
I want to create an image from the desktop and set it to gray using BITMAPINFO, but it keeps showing me the warning, "Warning C6255 _alloca indicates failure by raising a stack overflow exception....
0
votes
1
answer
182
views
How does bitmaps draw pixel on window?
So I followed a few tutorials on how to draw on window using windows.h library, the part of the tutorial that I don't really understand is the bitmap part. They used createbitmap() and StrechBit() ...
0
votes
1
answer
1k
views
Loading a Bitmap Image into openGL program
I am trying to load a bitmap to my openGL 3d object, however I get this error:
loadbitmap - bitcount failed = 8;
what I am trying to do is that I have an object and 3 separate bitmap images (Body, ...
0
votes
0
answers
529
views
c# Operation is not valid due to the current state of the object
I keep getting this error:
Operation is not valid due to the current state of the object
here is my code
public BitmapImage ToImage(byte[] array)
{
using (var stream = new ...
0
votes
1
answer
167
views
BitmapImage Stretch mode to Image tag in xaml
I am using in xaml with some fix image source, later on I wanted to use local image and wanted to assign to the xaml. But I am not able to use stretch in new image created .
Is there any way to use ...
0
votes
0
answers
388
views
Writing on a bitmap not working for writing a frame with a forge
I need to output the video from a webcam to file with Aforge.
LocalWebCamsCollection = new FilterInfoCollection(FilterCategory.VideoInputDevice);
LocalWebCam = new VideoCaptureDevice(...
0
votes
0
answers
208
views
How to remove antialias edge in ImageMagick when converting to a binary bitmap?
We're doing a cognitive experiment that requires flashing 480 black-and-white images at high speed against a neutral-gray background. The image shown is detail at about 300% zoom; the full display is ...
0
votes
0
answers
817
views
C++ Draw text on bitmap image without other library
I am writing a class in C++14 that gives the ability to read, write and edit bmp images. I must not use any third party library and do it all alone. I manage to read, write and draw shapes on the ...
0
votes
1
answer
540
views
How to create a BitmapImage buffer in background thread on C#? [duplicate]
Hello I want to create a buffer of BitmapImage built with a Queue from a background worker. The main target is to load some images from a private network and don't block UI. I can create that buffer ...
0
votes
1
answer
706
views
Wpf binding image file to BitmapImage UriSource in MVVM way
I'm desperatly triying to bound an image (which is located in a subdirectory of application installation directory).
I'm Using MVVM and .Net 3.5, is'ts easy to find the image path and return either a ...
1
vote
0
answers
603
views
iOS save image to bmp file, the file info is from 640x480 change to 640x-480
I use this method save image as bmp file, and original image size is 640x480
extension UIImage {
func toData (options: NSDictionary, type: CFString) -> Data? {
guard let cgImage = ...