dbTalk Databases Forums  

Possible to make transparent .bmp icons transparent with an Access 2010 ribbon?

comp.databases.ms-access comp.databases.ms-access


Discuss Possible to make transparent .bmp icons transparent with an Access 2010 ribbon? in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PW
 
Posts: n/a

Default Possible to make transparent .bmp icons transparent with an Access 2010 ribbon? - 02-02-2012 , 11:33 PM






Hi,

The icon pack I purchased comes with .bmp files that are coded in RGB
with magenta areas to define transparency. But they are showing up in
the ribbon as magenta borders, etc... Other formats are .ico and .png
which are not accepted in the ribbon (they are RGB with alpha
transparancy).

I tried converting the .bmp files to .jpgs but they show up with a
gray background (better than pink!).

Any ideas if this is possilbe?

I puchased them from Axialis.

Thanks,

-paulw

Reply With Quote
  #2  
Old   
PW
 
Posts: n/a

Default Re: Possible to make transparent .bmp icons transparent with an Access 2010 ribbon? - 02-03-2012 , 01:01 PM






On Thu, 02 Feb 2012 22:33:50 -0700, PW
<emailaddyinsig (AT) ifIremember (DOT) com> wrote:

Quote:
Hi,

The icon pack I purchased comes with .bmp files that are coded in RGB
with magenta areas to define transparency. But they are showing up in
the ribbon as magenta borders, etc... Other formats are .ico and .png
which are not accepted in the ribbon (they are RGB with alpha
transparancy).

I tried converting the .bmp files to .jpgs but they show up with a
gray background (better than pink!).

Any ideas if this is possilbe?

I puchased them from Axialis.

Thanks,

-paulw

I just used Fireworks to convert a .png with alpha channel into a .bmp
and it looks okay. Going to be a tedius process but oh well.

Reply With Quote
  #3  
Old   
Phil
 
Posts: n/a

Default Re: Possible to make transparent .bmp icons transparent with an Access 2010 ribbon? - 02-03-2012 , 05:44 PM



On 03/02/2012 19:01:03, PW wrote:
Quote:
On Thu, 02 Feb 2012 22:33:50 -0700, PW
emailaddyinsig (AT) ifIremember (DOT) com> wrote:

Hi,

The icon pack I purchased comes with .bmp files that are coded in RGB
with magenta areas to define transparency. But they are showing up in
the ribbon as magenta borders, etc... Other formats are .ico and .png
which are not accepted in the ribbon (they are RGB with alpha
transparancy).

I tried converting the .bmp files to .jpgs but they show up with a
gray background (better than pink!).

Any ideas if this is possilbe?

I puchased them from Axialis.

Thanks,

-paulw


I just used Fireworks to convert a .png with alpha channel into a .bmp
and it looks okay. Going to be a tedius process but oh well.

I've used ImageMagic to create transparent images to go on a form....
probably equally tedious, but I programmed something to draw basic boat and
camoe shapes.

Phil

Reply With Quote
  #4  
Old   
PW
 
Posts: n/a

Default Re: Possible to make transparent .bmp icons transparent with an Access 2010 ribbon? - 02-03-2012 , 09:33 PM



On Fri, 3 Feb 2012 23:44:55 GMT, "Phil" <phil (AT) stantonfamily (DOT) co.uk>
wrote:

Quote:
On 03/02/2012 19:01:03, PW wrote:
On Thu, 02 Feb 2012 22:33:50 -0700, PW
emailaddyinsig (AT) ifIremember (DOT) com> wrote:

Hi,

The icon pack I purchased comes with .bmp files that are coded in RGB
with magenta areas to define transparency. But they are showing up in
the ribbon as magenta borders, etc... Other formats are .ico and .png
which are not accepted in the ribbon (they are RGB with alpha
transparancy).

I tried converting the .bmp files to .jpgs but they show up with a
gray background (better than pink!).

Any ideas if this is possilbe?

I puchased them from Axialis.

Thanks,

-paulw


I just used Fireworks to convert a .png with alpha channel into a .bmp
and it looks okay. Going to be a tedius process but oh well.


I've used ImageMagic to create transparent images to go on a form....
probably equally tedious, but I programmed something to draw basic boat and
camoe shapes.

Phil

This one?: http://www.imagemagick.org/script/index.php

-paul

Reply With Quote
  #5  
Old   
PW
 
Posts: n/a

Default Re: Possible to make transparent .bmp icons transparent with an Access 2010 ribbon? - 02-03-2012 , 09:36 PM



On Fri, 3 Feb 2012 23:44:55 GMT, "Phil" <phil (AT) stantonfamily (DOT) co.uk>
wrote:

Quote:
On 03/02/2012 19:01:03, PW wrote:
On Thu, 02 Feb 2012 22:33:50 -0700, PW
emailaddyinsig (AT) ifIremember (DOT) com> wrote:

Hi,

The icon pack I purchased comes with .bmp files that are coded in RGB
with magenta areas to define transparency. But they are showing up in
the ribbon as magenta borders, etc... Other formats are .ico and .png
which are not accepted in the ribbon (they are RGB with alpha
transparancy).

I tried converting the .bmp files to .jpgs but they show up with a
gray background (better than pink!).

Any ideas if this is possilbe?

I puchased them from Axialis.

Thanks,

-paulw


I just used Fireworks to convert a .png with alpha channel into a .bmp
and it looks okay. Going to be a tedius process but oh well.


I've used ImageMagic to create transparent images to go on a form....
probably equally tedious, but I programmed something to draw basic boat and
camoe shapes.

Phil

Does it keep the transparency? I'll give it a try! Thanks.

-paulw

Reply With Quote
  #6  
Old   
PW
 
Posts: n/a

Default Re: Possible to make transparent .bmp icons transparent with an Access 2010 ribbon? - 02-03-2012 , 09:44 PM



On Fri, 3 Feb 2012 23:44:55 GMT, "Phil" <phil (AT) stantonfamily (DOT) co.uk>
wrote:

Quote:
On 03/02/2012 19:01:03, PW wrote:
On Thu, 02 Feb 2012 22:33:50 -0700, PW
emailaddyinsig (AT) ifIremember (DOT) com> wrote:

Hi,

The icon pack I purchased comes with .bmp files that are coded in RGB
with magenta areas to define transparency. But they are showing up in
the ribbon as magenta borders, etc... Other formats are .ico and .png
which are not accepted in the ribbon (they are RGB with alpha
transparancy).

I tried converting the .bmp files to .jpgs but they show up with a
gray background (better than pink!).

Any ideas if this is possilbe?

I puchased them from Axialis.

Thanks,

-paulw


I just used Fireworks to convert a .png with alpha channel into a .bmp
and it looks okay. Going to be a tedius process but oh well.


I've used ImageMagic to create transparent images to go on a form....
probably equally tedious, but I programmed something to draw basic boat and
camoe shapes.

Phil
Ick. No GUI or installer (if I have the right link:
http://imagemagick.en.softonic.com/).

Reply With Quote
  #7  
Old   
Phil
 
Posts: n/a

Default Re: Possible to make transparent .bmp icons transparent with an Access 2010 ribbon? - 02-04-2012 , 03:32 AM



On 04/02/2012 03:44:12, PW wrote:
Quote:
On Fri, 3 Feb 2012 23:44:55 GMT, "Phil" <phil (AT) stantonfamily (DOT) co.uk
wrote:

On 03/02/2012 19:01:03, PW wrote:
On Thu, 02 Feb 2012 22:33:50 -0700, PW
emailaddyinsig (AT) ifIremember (DOT) com> wrote:

Hi,

The icon pack I purchased comes with .bmp files that are coded in RGB
with magenta areas to define transparency. But they are showing up in
the ribbon as magenta borders, etc... Other formats are .ico and .png
which are not accepted in the ribbon (they are RGB with alpha
transparancy).

I tried converting the .bmp files to .jpgs but they show up with a
gray background (better than pink!).

Any ideas if this is possilbe?

I puchased them from Axialis.

Thanks,

-paulw


I just used Fireworks to convert a .png with alpha channel into a .bmp
and it looks okay. Going to be a tedius process but oh well.


I've used ImageMagic to create transparent images to go on a form....
probably equally tedious, but I programmed something to draw basic boat and
camoe shapes.

Phil

Ick. No GUI or installer (if I have the right link:
http://imagemagick.en.softonic.com/).

It's a b......r to find,and I cant find the source

My version is ImageMagick-6.6.8-Q16 though your link appears to be to a later
vesion I tried ImageMagick-6.6.9-Q16 and that didn't work

I was using it to display an image of a boat, with the name of the boat and
label with the owner's name and had a lot of overlaps, hence the need for
transparent images.

Sample of code follows to create a boat

Function CreateBoatImage()

Dim IMCmd As String
Dim ImFileOut As String
Dim sGO As String
Dim ImagePath As String, StoragePath As String, PicPath As String

ImagePath = Elookup("ExcelPath", "QCoinfoPaths")
StoragePath = Elookup("StorageFolder", "QCoinfoPaths")

' First 2 numbers are X & Y centres
' Second 2 numbers are width and length
' Third 2 numbers are how far round in degrees.
IMCmd = ImagePath
IMCmd MCmd = IMCmd & "convert -size 200x200 xc:none -stroke black
-strokewidth 1 -fill transparent " IMCmd = IMCmd & " -draw " & Chr$(34) &
"ellipse 80,30 40,20 20,90" & Chr$(34) & " " IMCmd = IMCmd & " -draw " &
Chr$(34) & "ellipse 80,43 40,-20 20,90" & Chr$(34) & " " IMCmd = IMCmd & "
-draw " & Chr$(34) & "line 30,26 80,23" & Chr$(34) & " " IMCmd = IMCmd & "
-draw " & Chr$(34) & "line 30,47 80,50" & Chr$(34) & " " IMCmd = IMCmd & "
-draw " & Chr$(34) & "line 30,26 30,47" & Chr$(34) & " " IMCmd = IMCmd & "
-rotate -90 " IMCmd = IMCmd & "-background transparent -trim +repage "

ChDir hDir (StoragePath) ' Imagemagick does not understand paths

ImFileOut = "MasterBoat.Png"
If Dir(ImFileOut) > "" Then
Kill ImFileOut
End If

sGO = IMCmd & ImFileOut
If ShellWait(sGO, vbHide) = 1 Then
PicPath = StoragePath & "\" & ImFileOut
Else
MsgBox "Error ???"
End If

End Function

Phil

Reply With Quote
  #8  
Old   
PW
 
Posts: n/a

Default Re: Possible to make transparent .bmp icons transparent with an Access 2010 ribbon? - 02-04-2012 , 12:03 PM



On Sat, 4 Feb 2012 09:32:03 GMT, "Phil" <phil (AT) stantonfamily (DOT) co.uk>
wrote:

Quote:
On 04/02/2012 03:44:12, PW wrote:
On Fri, 3 Feb 2012 23:44:55 GMT, "Phil" <phil (AT) stantonfamily (DOT) co.uk
wrote:

On 03/02/2012 19:01:03, PW wrote:
On Thu, 02 Feb 2012 22:33:50 -0700, PW
emailaddyinsig (AT) ifIremember (DOT) com> wrote:

Hi,

The icon pack I purchased comes with .bmp files that are coded in RGB
with magenta areas to define transparency. But they are showing up in
the ribbon as magenta borders, etc... Other formats are .ico and .png
which are not accepted in the ribbon (they are RGB with alpha
transparancy).

I tried converting the .bmp files to .jpgs but they show up with a
gray background (better than pink!).

Any ideas if this is possilbe?

I puchased them from Axialis.

Thanks,

-paulw


I just used Fireworks to convert a .png with alpha channel into a .bmp
and it looks okay. Going to be a tedius process but oh well.


I've used ImageMagic to create transparent images to go on a form....
probably equally tedious, but I programmed something to draw basic boat and
camoe shapes.

Phil

Ick. No GUI or installer (if I have the right link:
http://imagemagick.en.softonic.com/).


It's a b......r to find,and I cant find the source

My version is ImageMagick-6.6.8-Q16 though your link appears to be to a later
vesion I tried ImageMagick-6.6.9-Q16 and that didn't work

I was using it to display an image of a boat, with the name of the boat and
label with the owner's name and had a lot of overlaps, hence the need for
transparent images.

Sample of code follows to create a boat

Function CreateBoatImage()

Dim IMCmd As String
Dim ImFileOut As String
Dim sGO As String
Dim ImagePath As String, StoragePath As String, PicPath As String

ImagePath = Elookup("ExcelPath", "QCoinfoPaths")
StoragePath = Elookup("StorageFolder", "QCoinfoPaths")

' First 2 numbers are X & Y centres
' Second 2 numbers are width and length
' Third 2 numbers are how far round in degrees.
IMCmd = ImagePath
IMCmd MCmd = IMCmd & "convert -size 200x200 xc:none -stroke black
-strokewidth 1 -fill transparent " IMCmd = IMCmd & " -draw " & Chr$(34) &
"ellipse 80,30 40,20 20,90" & Chr$(34) & " " IMCmd = IMCmd & " -draw " &
Chr$(34) & "ellipse 80,43 40,-20 20,90" & Chr$(34) & " " IMCmd = IMCmd & "
-draw " & Chr$(34) & "line 30,26 80,23" & Chr$(34) & " " IMCmd = IMCmd & "
-draw " & Chr$(34) & "line 30,47 80,50" & Chr$(34) & " " IMCmd = IMCmd & "
-draw " & Chr$(34) & "line 30,26 30,47" & Chr$(34) & " " IMCmd = IMCmd & "
-rotate -90 " IMCmd = IMCmd & "-background transparent -trim +repage "

ChDir hDir (StoragePath) ' Imagemagick does not understand paths

ImFileOut = "MasterBoat.Png"
If Dir(ImFileOut) > "" Then
Kill ImFileOut
End If

sGO = IMCmd & ImFileOut
If ShellWait(sGO, vbHide) = 1 Then
PicPath = StoragePath & "\" & ImFileOut
Else
MsgBox "Error ???"
End If

End Function

Phil

Oh boy! I never thought of using code to create images!

Check this out. I haven't tried it yet. Axialis sent me this link:
http://stackoverflow.com/questions/5...in-access-2007

A few references to David Fenton :-(

And a link to Albert's Ribbon Class where he uses a .png file. I need
to restudy it as I missed it last time around.

Thanks!

-paulw

Reply With Quote
  #9  
Old   
Albert D. Kallal
 
Posts: n/a

Default Re: Possible to make transparent .bmp icons transparent with an Access 2010 ribbon? - 02-05-2012 , 10:22 PM



"PW" wrote in message news:m5smi79jge8n0qs8f08sj8hdjic3koahk7 (AT) 4ax (DOT) com...

Quote:
Hi,

The icon pack I purchased comes with .bmp files that are coded in RGB
with magenta areas to define transparency. But they are showing up in
the ribbon as magenta borders, etc... Other formats are .ico and .png
which are not accepted in the ribbon (they are RGB with alpha
transparancy).
How are you loading the icons.

The samples here:
http://www.accessribbon.de/en/index.php?Downloads

Use a routine called loadpictureGDI in placer of loadpicture() (the one that
VBA had for ages).
Using this routine will load + respect transparency.

If you just use the very old VBA loadpicture() command then I as a rule find
the icons, bmp, png, gif all look rather poor.


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
Pleasenospam_kallal (AT) msn (DOT) com

Reply With Quote
  #10  
Old   
PW
 
Posts: n/a

Default Re: Possible to make transparent .bmp icons transparent with an Access 2010 ribbon? - 02-07-2012 , 06:46 PM



On Sun, 5 Feb 2012 21:22:39 -0700, "Albert D. Kallal"
<PleaseNOOOsPAMmkallal (AT) msn (DOT) com> wrote:

Quote:
"PW" wrote in message news:m5smi79jge8n0qs8f08sj8hdjic3koahk7 (AT) 4ax (DOT) com...

Hi,

The icon pack I purchased comes with .bmp files that are coded in RGB
with magenta areas to define transparency. But they are showing up in
the ribbon as magenta borders, etc... Other formats are .ico and .png
which are not accepted in the ribbon (they are RGB with alpha
transparancy).

How are you loading the icons.
Like this:

<!-- <button id="btnToday" size="large" label="Today"
image="table-edit.bmp" onAction="OnOpenFormNewRec" tag="frmToday"/>
-->

Quote:
The samples here:
http://www.accessribbon.de/en/index.php?Downloads
More good stuff from you Albert!

Quote:
Use a routine called loadpictureGDI in placer of loadpicture() (the one that
VBA had for ages).
Using this routine will load + respect transparency.

If you just use the very old VBA loadpicture() command then I as a rule find
the icons, bmp, png, gif all look rather poor.
Good to know, but I am just using the image property. Axialis gave me
a break on the cost of their icon workshop program that will do batch
changes.

-paul

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.