It is currently Thu Jun 07, 2018 8:20 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: User picture types
PostPosted: Fri Apr 22, 2016 10:22 pm 
Offline
User avatar

Joined: Thu Jun 13, 2013 12:07 pm
Posts: 1014
User picture types.

Just posting this for anyone thinking of adding user picture to a skin that does not have it.
Shows the different results, using Classic style.
Positioning text, text padding accommodation would need to be put in skin file too.
The skinning tutorial can teach most of that, or look at a similar made skin.

CSM can auto build a square frame for user picture.
Just requires "User_image_size=48" to be put in skin file.

Or have a custom frame for the square picture, called a "User_bitmap"
Make sure the part in middle has alpha channel at 0/255.
Sometimes the corners of user picture can become visible, if frame is transparent at those corners.

Can overcome the square user picture, by using a round one called "User_mask".
It can be used with or without the frame (User bitmap).
Have to make sure the bitmap is same size as User image size. It can be square, round, spikey, etc. In this case round is better.
It has to have alpha 255/255 at the middle part, and 0/255 alpha where you don't want picture to show.
The extra benefit of using a "user mask" is transparent png user picture/icons can be used, to blend in with menu background.
To get that, use CSM user picture settings to add picture instead of Windows.

Edit: added extra info. I like palm trees better than Jeff.


Attachments:
User  picture.jpg
User picture.jpg [ 136.7 KiB | Viewed 2091 times ]
Not black.jpg
Not black.jpg [ 92.58 KiB | Viewed 2091 times ]
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.