I have an image wiht gtk.gdk. I want to make it look grayed out, so I wanna do something like draw a gray rectangle over it with 50% alpha value. How would I do this? The docs are so confusing.
gtk.gdk: make image 50% grayer
312 Views Asked by Claudiu At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in PYGTK
- How to create a dropdown from a gtk.Entry's icon?
- GtkTreeView filtering and selecting
- PyGObject or PyGtk
- Can't set parent using GTK in Python.TypeError: argument parent: Expected Gtk.Window, but got __main__.function
- pip can't find distribution of PyGTK after python update
- close sub-window without closing main window PyGTK in python
- How do I modify or send signals to WebKit in Python from another module?
- "R6034 An application has made an attempt to load the C runtime library incorrectly" after pygtk being installed
- Creating a sub-window with PyGTK
- pyGtk: Gtk missing error when get version
- Why does set_position fail in this code
- touchscreen scrolling into python web browser
- Checking if a Button was clicked
- PyGi: How to use a GTKListBox with a GTKListStore?
- Using lambda function to connect buttons in a calculator program and show values after entering
Related Questions in GTK
- Java 1.6 -> 1.7 JNLP = SIGSEGV
- Multithreading and gtk2hs
- How to have a window closed when a user clicks outside of it using GTK+2?
- How to use MonoDevelop Docking Library
- Adding 2 different widgets on single window GTK+
- Gtkmm - Save Gtk::DrawingArea to file
- "Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale." on OS X
- Linker error with gdk_pixbuf_xlib_get_from_drawable
- How to style a GtkLabel with CSS?
- Access native QFileDialog
- Getting a “format not a string literal and no format arguments” warning while using GTK+2
- Adding gtk graphics to existing console application - shared memory?
- GTK : Any way to mximize the window on Button trigger
- Is it possible to disable, fade or make a button inside a dialog unclickable in GTK?
- How to know my gtk version on openSuse?
Related Questions in GDK
- Getting X Cursor in WebKit GTK2+ widget if run by startx
- Linker error with gdk_pixbuf_xlib_get_from_drawable
- gdk_display_get_name: assertion 'GDK_IS_DISPLAY (display)' failed trying to run pidgin
- Undefined reference to `gdk_color_parse'
- Methods to install custom style properties in GTK+-widgets
- How to get window xid in Vala using Gdk.X11.Window?
- Is it possible to call Gdk.Seat.grab() in GJS?
- Issue with gdkpixbuff
- Gtk+: How to set the cursor of a window from a Cairo context?
- Using Groovy comparison operators with Date objects
- gtk.gdk: make image 50% grayer
- GdkWindow for wxWidgets
- Drawing Oval with Gdk Cairo Context
- Detect mouse leaving pygtk window
- Where can I find a list of the GDK_comma, GDK_dollar, ... constants?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
i just thought of a way taking half of the color's highest values and taking half of the number directly between them and putting that on the lowest number (Eg: 0,255,255 to 127,255,255 or 0,127,255 to 96,127,255) or taking the second highest number and the highest number, finding the 50%, putting that as the second highest number, then doing that again for the absolute lowest number (Eg: 0,128,255 > 112,192,255) hope this works for me and for you, right now im recommending to myself and you, the second option, however if you're lazy, the first option is less work