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
313 views Asked by Claudiu At
1
There are 1 answers
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in PYGTK
- python, gtk and opengl: render after mouseclick
- How to loop through open Gtk.Windows?
- How to re-draw (refresh, update, replace) container in GTK3?
- Appliction command line int option with value 0 not availible
- Is it possible to use other widget in the tab lable other than Gtk.Label?
- How to change differnt treeviews headers different colors
- How to use a socket as the pty in libvte?
- How to selectively apply different stylesheets in GTK application (python)?
- How to add some index or ID to object or function?
- Apperance settings not staying as set
- show popup window from a thread pygtk make GUI freeze
- PyGObject Scroll to bottom of ScrolledWindow() after adding row to child TreeView
- replacement of get_data and set_data in pygtk3
- PyGTK calculator
- PyGtk with Gtk+3 gives illegal instruction 4
Related Questions in GTK
- Do GTK file chooser dialogs come with localized strings for buttons and titles?
- Why does GTK beep when calling `gtk_entry_set_text` (while resizing a window)?
- Distributing a GTK4 Windows application
- Callback function doesn't modify widget
- getting arguments with g_signal_connect GTK4
- ValueError: Namespace Xdp not available
- How do I link gtk/gtk.h to my compiler in VSCode
- Using GTK v0.18.1 on rust to draw
- How to set transparent background for gtk_plug_new window
- GTK Cairo. Why gtk_widget_queue_draw called from function (in iddle callback) does not work?
- GTK4 Window Created from XML, Closes Immediately After Run()
- How do I receive UDP broadcast packets using GTK / GIO?
- Install Gtk 3.0 problem with depencies in linux
- Ubuntu 22.04 libgtk-3.so: undefined reference to symbol 'gdk_window_hide'
- GTK: "Object with ID not found" error, but the ID is empty
Related Questions in GDK
- GdkCursor is randomly resetting to default with wglContext and gtk3
- Ubuntu 22.04 libgtk-3.so: undefined reference to symbol 'gdk_window_hide'
- GTK send keyboard event to gtk window
- gtk4-rs: Get Monitors as gdk::Monitor not as a glib::Object
- How to use DirectX3D render gtk window on window platform?
- GTK/GDK/X11 Issue With Window Titles Larger Than Window on Ubuntu 16.04
- Not easily debuggable crash on GDK at Gdk::Cairo::set_source_pixbuf()
- Ubuntu GDK C++ how to get the code of a key using CAPSLOCK
- How to get all windows of all applications with GTK4
- Glade GDK buttons have awful top border
- c - segfault in gdk function if assigning value to (subsequent) struct variables
- Ubuntu: How to get the name of the active keyboard using C++ gtk or xkb
- ubuntu c++ how get the name of the current active keyboard
- How to embed an native application running in debian into Java SWT application?
- How to move gtk window on a specific position on the screen under wayland?
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?
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)
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