Search found 2 matches

by atomic
2018-08-20T09:56:36-07:00
Forum: Developers
Topic: [MagickCore] Reading an image from memory
Replies: 2
Views: 9645

Re: [MagickCore] Reading an image from memory

I'm now using StreamImage instead. Is this the correct way to decode an image into memory that I control? I can stream from a blob to a file easily enough (error handling and resource cleanup omitted): std::vector<uint8> inputData; char* outputFile = "C:\\Users\\atomic\\Desktop\\img_test.raw&qu...
by atomic
2018-08-17T10:14:13-07:00
Forum: Developers
Topic: [MagickCore] Reading an image from memory
Replies: 2
Views: 9645

[MagickCore] Reading an image from memory

I'm using the MagickCore API to load images in a game engine. I have an in-memory file buffer that I'm loading an image (such as a .png) out of. I'm then sticking the decoded data into another in-memory buffer. My current idea requires an extra copy that I'd like to get rid of: std::vector<uint8> in...