Jump to content


Photo

nxLinkLabel Glyph


  • Please log in to reply
6 replies to this topic

#1 deonvn

deonvn

    Senior Member

  • Honorable Members
  • PipPip
  • 313 posts

Posted 30 May 2007 - 09:45 AM

Hi Boki

I don't know if I'm doing something wrong, but I can't get the nxLinkLabel to show the glyph. I have loaded a glyph and set the DisplayMode to dbGlyph, but the area where the glpyh should be is blank (it moves the text to the right to make room for the glyph, but the glyph is never displayed).

What am I doing wrong?

Regards,

Deon

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 30 May 2007 - 10:34 AM

Hello Deon,

Can you please send me this Glyph to me, or small demo project. I have check it now and all is fine (nothing is changed here for last time).

Thank you.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 30 May 2007 - 02:29 PM

Hello Deon,

This glyph include alpha-channel, but whole channell is black and glyph is completelly transparent.

You may open this image in Photoshop and remove alpha-chanell and save image as 24bit image.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#4 deonvn

deonvn

    Senior Member

  • Honorable Members
  • PipPip
  • 313 posts

Posted 30 May 2007 - 03:59 PM

Thanks Boki

I removed tha Alpha channel and now it works fine.

I have no idea how the Alpha channel got there, what it is or what it actually does. When it comes to graphics I obviously have no idea what I'm doing huh.gif

Thanks again

Deon

#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 30 May 2007 - 04:07 PM

Hello Deon,

Maybe when you have save this icon from other program, this program have create it.

Alpha-channel is very good for anti aliased icons: What is drawn 100% black in alpha-channel will be fully transparent, 50% gray will be 50% transparent and so on.

For example: Draw one anti aliased circle in photoshop (with using Shape tool). Do Ctrl+Click on layer thumbnail to select layers transparency. Click on Select->Invert Selection and then add new Chanel. Save this image as 32bit bitmap and display it on NxGlyph for example. You will see how nice it may look smile.gif

I will write small tutorial for this soon smile.gif

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#6 deonvn

deonvn

    Senior Member

  • Honorable Members
  • PipPip
  • 313 posts

Posted 30 May 2007 - 05:28 PM

Thanks. I will try it.

Regards,

Deon

#7 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 31 May 2007 - 01:08 AM

Hello,

Here is a one small tutorial for creating 32bit images. I will create one antialiased circle and create alpha-channel for it.

All you need is a Photoshop 7 or newer version (CS, CS2, CS3).

1) Open Photoshop.

2) Create new image (32px x 32px), and set Background to be transparent

3) Click on Ellipse tool Attached File  1.gif   1.29KB   0 downloads

4) Draw antialiased circle:
Attached File  2.gif   2.65KB   0 downloads
(zoomed 600%)

5) Hold CTRL + Click on layer thumbnail to select layer's transparency:
Attached File  3.gif   2.63KB   0 downloads

Attached File  4.gif   319bytes   0 downloads

6) Chose (from main menu) Select -> Inverse.

7) Add new channel by clicking on Save selection as channel
Attached File  5.gif   9.16KB   0 downloads

6) Chose (from main menu) File -> Save As

7) Pick BMP as extension, and in next dialog chose 32 bit.

Now this image may be used inside NxGlyph, NxLinkLabel, NxButton, NextGrid and it will be antialiased.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users