Print Page | Close Window

Loading bitmap from stream (CMemFile)

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=15269
Printed Date: 27 February 2025 at 2:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Loading bitmap from stream (CMemFile)
Posted By: cmarsura
Subject: Loading bitmap from stream (CMemFile)
Date Posted: 30 September 2009 at 3:35am
Hi.
I have the necessity of load bitmaps from a memory stream like CMemFile.
CXTPImageManagerIcon have the LoadBitmapFromFile() but does not offer a similar function to load a bitmap from a memory block. Looking at CXTPImageManagerIcon::LoadAlphaBitmap() I found code to adapt to load an alpha bitmap from memory, but I have no idea of how to load a non alpha bitmap from memory block.

There are someone that can give me a hint?
Carlo.

-------------
Product: Xtreme ToolkitPro v 11.1 / Xtreme SuitePro v 10.4.2
Platform: Windows XP (32bit) - SP 3
Language: Visual Studio 2008, Visual Studio 6, Visual Basic 6.0



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net