ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Accessing pixels in bitmaps + retreiving from registry (https://www.excelbanter.com/excel-programming/284622-accessing-pixels-bitmaps-retreiving-registry.html)

Googleplex

Accessing pixels in bitmaps + retreiving from registry
 
Having assigned a StdPicture or IPictureDisp object--call it
"pic"--from the .Picture property of a selected button on a
commandbar, I would like to be save the critical pixel data with
SaveSetting for later retrieval by GetSetting.

How do I accomplish this? Does a property exist for pic that I can
save and retrieve?

For reference purposes, the snippet below outlines what I am trying to
do:

Set pic = btn.Picture
SaveSetting "AppName","Section", "Key", pic.???

set pic2.??? = GetSetting("AppName", "Section", "Key")
btn.Picture = pic2


Thanks


All times are GMT +1. The time now is 07:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com