Questions tagged [dib]

DIB is a Device Independent Bitmap

Refer to https://en.wikipedia.org/wiki/Device-independent_bitmap for more details.

51 questions
0
votes
1 answer

CreateDIBitmap creates Black&White image

For someone who knows CreateDIBitmap troubleshootings When I create it, passing all the parameters hopefully correct, I create it with passing data array (bits array). This array is taken from the same bitmap (idea is to create a new copy; for…
user834850
0
votes
1 answer

How to create a DIB, set the bits and attach to a CImageList

I am trying to create a Device Independent Bitmap, programatically set the pixels (as opposed to loading from a resource or from disk) and attach the DIB to a CImageList for use in a CComboBoxEx control. I believe the DIB is being created…
0
votes
0 answers

Can Graphics.DrawImage draw a YV12 DIB?

I've inherited a C# .Net Windows Forms project which receives a Device Independent Bitmap (as an array of bytes) from a Managed pre-compiled DLL. The C# code makes a dummy BMP file from the DIB so that it can create a Bitmap which can then be drawn…
0
votes
0 answers

Java : export Device-Independent Bitmap stream contained in OLE column in Microsoft Access database

I'm a Java developer, and I'm trying to export images contained in a Microsoft Access database. The image object is stored in an OLE column that I've managed to read, but the content is a little bit strange due to the fact that the images were…
Jelti M
  • 21
  • 2
0
votes
2 answers

Modifying BMP color palette and saving as correct format

An old abandonware game uses an image's color palette as the game's color palette https://ufile.io/su465 <- Here is said file Windows 10 does not recognize it as having a file type, but using online file-type checkers suggests its a Windows 3.x BMP…
user9600484
  • 3
  • 1
  • 2
0
votes
0 answers

Dlib gathering points with glob

I am new in python and nowadays I am trying work with gathering coordinates of points with dlib C++ library. But I cannot understand this code. Please help me for f in glob.glob(os.path.join(faces_folder_path, "*.JPG")): fh = open(f +…
Dona
  • 11
  • 4
0
votes
1 answer

Whats the correct way to use a color lookup table with a Win32 DIB?

I'm writing some code to perform window levelling on a 16 bit DICOM image (which is loaded in memory as a 16 bit DIB). My window levelling code is complete and works by generating a lookup table to map the source pixel values to the desired final…
Josh
  • 450
  • 3
  • 12
0
votes
1 answer

python BMP/DIB byte slots , compression slot

I am trying to learn (by myself and help of stackoverflow ) to read binary data as they are packed and distributed. I am doing this for shear curiosity, but i must say in advance that i don't have proper schooling from this field, everything i know…
Danilo
  • 1,017
  • 13
  • 32
0
votes
1 answer

Converting rtsp stream to bmp images

I have a requirement in which I have to convert a RTSP video stream into BMP images and then pass on to my face detection application. So is it possible to do the same using ffmpeg tool? If not, then can anybody guide me to the right tool/some…
Abhilash Awasthi
  • 782
  • 5
  • 22
0
votes
1 answer

How can I put a device-independent bitmap into the Windows clipboard using just direct WinAPI? (No MFC or other wrappers)

I've been trying to get this to work for awhile now, but I can't seem to figure it out, and hours of Googling has yet to reveal any useful results. I have an array of 32-bit pixels in RGBA order, and I want to create a device-independent bitmap from…
celticminstrel
  • 1,637
  • 13
  • 21
0
votes
2 answers

How to get a DIB implemented in a C++/COM library into a .NET client using that COM object

We have a COM object implemented with C++/ATL that includes a method which will return a DIB. We are also writing a .NET application that will use this COM object. Since we are writing both, we have the liberty of deciding how best to return this…
Karim
  • 18,347
  • 13
  • 61
  • 70
0
votes
3 answers

CreateDIBSection leaving 'Not enough storage' error, but seems to still work anyway

Whenever my app tries to create a DIB section, either by calling CreateDIBSection(), or by calling LoadImage() with the LR_CREATEDIBSECTION flag, it seems to return successfully. The HBITMAP it returns is valid, and I can manipulate and display it…
Doug Kavendek
  • 3,624
  • 4
  • 31
  • 43
0
votes
0 answers

C++ WINAPI CreateDIBitmap trouble

I wrote a program which loads a bitmap file (only) to a window, and it's works fine for any file with .bmp extansion. But I faced with the next problem when I was making a testing. I took a file with .jpg extansion, opened it in Paint and then saved…
user2556165
0
votes
2 answers

Delphi DIB with DIB Header into TBitmap

I'm kindly asking you to help me with this problem: There's a byte array (data: PByte) containing DIB data AND DIBHeader: TDibHeader = record size: Cardinal; width: Integer; height: Integer; planes: Word; bits: Word; …
benjamin
  • 105
  • 1
  • 4
  • 8
0
votes
0 answers

How to convert PointerByReference image to Byte[] then BITMAP using JAVA/JNA?

i'm using JNA to work with a scanner's library "LSAPI.DLL" so, after the scan i get a frontimg parameter which is a Pointer of a Dib format, so i have to convert it to a Byte[] then convert the Byte[] to a bitmap and finally save the scanned image…
Marouen
  • 50
  • 8