Extracting the images in Access Image Gallery (1 Viewer)

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:29
Joined
May 7, 2009
Messages
19,243
selecting emdedded as the picture type
did you change it again to "shared" (to save it to MsysResources)?
 

seemick

New member
Local time
Today, 18:29
Joined
Mar 11, 2024
Messages
12
Yes, that's why I was able to post an image of the resulting record in the MSysResources table.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:29
Joined
May 7, 2009
Messages
19,243
sorry, yes you are correct, the os does not recognize the image.
 

seemick

New member
Local time
Today, 18:29
Joined
Mar 11, 2024
Messages
12
It's odd because I came across a database online (I can't remember exactly where I got it) that has a couple of records in there for built in images that work fine. I am trying to add a couple more images or at least figure out how to. The 2 I have are the down arrow and the filter.
3.png

I can't for the life of me find where I got it.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:29
Joined
May 7, 2009
Messages
19,243
from what i "googled", it is likely an .ico file.
extract it and rename it as filename.ico

after renaming, go to https://www.freeconvert.com/ to convert it to .jpg.
(actually it did successfully convert it).
 

seemick

New member
Local time
Today, 18:29
Joined
Mar 11, 2024
Messages
12
How do I extract built in .ico? I don't want to extract the existing 2. I want to add new ones.
 

seemick

New member
Local time
Today, 18:29
Joined
Mar 11, 2024
Messages
12
I think I am completely misunderstanding you. I haven't been able to solve my query and I don't understand your last 2 post. :)
 

seemick

New member
Local time
Today, 18:29
Joined
Mar 11, 2024
Messages
12
How do I add built in images into the MSysResources table?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:29
Joined
May 7, 2009
Messages
19,243
you already did it, put the image first as embedded then later as shared.

now the resulting is an .ico, which you cannot open.
suggest you extract it (using the code i gave) and rename it as filename.ico.
then use online converter to convert it to .jpg (or any format).
you can now view your image.
if you want you can use this converted image back to your access app as your image.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:29
Joined
May 7, 2009
Messages
19,243
convert it to png so it will not loose any transparency (the one i converted to .jpg has black background).
 

seemick

New member
Local time
Today, 18:29
Joined
Mar 11, 2024
Messages
12
Wow...It works. Thanks for your help. We got there in the end. I can be a bit slow at times. :)
 

isladogs

MVP / VIP
Local time
Today, 09:29
Joined
Jan 14, 2017
Messages
18,221
The main purpose of the Image Gallery is to store small images that can be used in multiple places in your database. As already stated, use the Shared setting. Do not embed the image or it defeats the purpose of using the image gallery
 

seemick

New member
Local time
Today, 18:29
Joined
Mar 11, 2024
Messages
12
Thanks for the tip. As previously mentioned I am only using this to store a few icons to be able to change the picture properly of a button at run time. (2kb each) Are you aware of a better option rather than having multiple buttons and hiding the unused ones?
 

tvanstiphout

Active member
Local time
Today, 01:29
Joined
Jan 22, 2016
Messages
222
You can change the picture by changing the Picture property of the button:
Me.myButton.Picture = "otherPictureInImageGallery"
 

seemick

New member
Local time
Today, 18:29
Joined
Mar 11, 2024
Messages
12
Have you tried this with the default available pictures?
4.png
 

Users who are viewing this thread

Top Bottom