Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Help drawing transparent images in PHP-GTK 1
Unspecified
zzo38
Posted: Jun 29 2008, 12:42 PM
Quote Post


Registered user


Group Icon
Group: Members
Posts: 1621
Member No.: 2549
Joined: 21-August 06

Status: (0d) [--]


I need help drawing transparent images in PHP-GTK 1. I have 24x24 images with transparencies and when it is loaded, I want to draw multiple images in the same position overlaping each other. How to do that?

This post has been edited by zzo38 on Jun 29 2008, 12:42 PM


--------------------
Access my web-site
Vonkeror: the new web-browser
Wikipedia user-page
My gopher site Forget Web 2.0. Now is the time for Gopher 2.0.
Furryscript!!

Member of Anti-Master-Balls

Message to the moderator: I don't want you to add the badges under my name anymore.
PMUsers Website
Top
Unspecified
zzo38
Posted: Jun 30 2008, 06:07 PM
Quote Post


Registered user


Group Icon
Group: Members
Posts: 1621
Member No.: 2549
Joined: 21-August 06

Status: (0d) [--]


Nevermind, I figured it out. The solution is to set the "clip_mask" property of the "GdkGC" object to the mask image you want to use (element [1] of the array that is returned from the "gdk::pixmap_create_from_xpm_d" function). This information might be useful to other people who are trying to do the same thing.



--------------------
Access my web-site
Vonkeror: the new web-browser
Wikipedia user-page
My gopher site Forget Web 2.0. Now is the time for Gopher 2.0.
Furryscript!!

Member of Anti-Master-Balls

Message to the moderator: I don't want you to add the badges under my name anymore.
PMUsers Website
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0372 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 2.78 ]