I'm wondering if there is any possibility to draw png with transparent colors, so I can make something half-transparent. I've read this but I can't get anything to work. I also heard about alpng library but I don't know if it's able to load transparency too.
I'm using allegro 4.2.1 with the newest Dev-C++.
Blit transparent images with Allegro
1.6k Views Asked by noisy cat At
1
There are 1 best solutions below
Related Questions in C++
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Why can't I use templates members in its specialization?
- How to fix "Access violation executing location" when using GLFW and GLAD
- Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
- How do I apply the interface concept with the base-class in design?
- File refuses to compile std::erase() even if using -std=g++23
- How can I do a successful map when the number of elements to be mapped is not consistent in Thrust C++
- Can std::bit_cast be applied to an empty object?
- Unexpected inter-thread happens-before relationships from relaxed memory ordering
- How i can move element of dynamic vector in argument of function push_back for dynamic vector
- Brick Breaker Ball Bounce
- Thread-safe lock-free min where both operands can change c++
- Watchdog Timer Reset on ESP32 using Webservers
- How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
- Conda CMAKE CXX Compiler error while compiling Pytorch
Related Questions in IMAGE
- Golang lambda upload image into s3 static website
- Put an image behind the title in a WP, WooCommerce "shop" page
- How to create an JSOUP element from byte array image (Load from Database)
- Cloudflare not respecting Cache-Control
- Sending multiple images and data in a single angular observable
- Create and combine several images into a single image for my react native App
- Should I compress images in java backend before sending to frontend?
- Javascript Place Image Where User Clicks
- Whitespace in document has a bottom border remnant or some other line at the bottom of the whitespace
- Sony Spresense Camera Board
- After completely installation and done all the work i am getting Permission denied error do any one have solution
- HTML page on NAS server image not showing on mobile phone
- mouse coordinates in image go below 0 and above width
- Why are the css images or js not loading in my laravel project?
- Python pillow library text align center
Related Questions in TRANSPARENCY
- Blender to Unity Vertex Color (Alpha) Data Doesn't Work
- How to fetch the data of a PNG PHAsset, which is cropped or adjusted?
- Models using Unity URP shader and transparency are overlapping themselves
- Colorize, Transparent and Move Selected Entities on Xbim Control
- Set transparent fill for box plots using px.box
- How to set p5.js alpha channel transparency in a shader?
- Knock-out transparency group, TikZ and SVG
- TextLabels not changing to Visible = false to Visible = true
- Keep transparency after merging 2 videos
- Transparency probleme on my c++ windows.h
- Android: TextView transparent png as background resource not working
- Hiding widgets in a QMainWindow layout with a translucent background on macOS
- Unity Built-in shader, cutout + transparent
- Magick -depth 16 command changes alpha channel data
- How can I create a tkinter python object to be 50% opacity?
Related Questions in DRAW
- Draw polygon next to an another one
- Performance slowdown and inaccuracies in stroke rendering due to float-based distance calculation in drawing
- With the canvas, draw and fill a rectangle with a rectangular hole in it
- In julia gamezero i want to programatically change the tint of a draw object. However, colorant doesnt allow variables to be substituted into strings
- Need Help How To Draw Both Arabic And English Words Char By Char
- matplotlib plot not updating after the plot is first shown with .show
- How do I draw this plot in Maple?
- Having some issues with Void Draw in Processing
- How would I redraw the lives count in my game
- How to draw just one connected component in python using networkx
- Trouble Creating Dynamic Polygons with JavaScript and CSS
- Issue with Sequential Touch Points in Using CALayer for Drawing in Swift
- How to optimize rendering performance when drawing a large number of animated shapes on a JavaFX canvas
- How to run code.org animations offline using javascript and html files?
- How download in png a svg made with Mxgraph
Related Questions in ALLEGRO
- How to directly access video memory of a bitmap in Allegro 5 (for Pascal)
- Get list of products/offers by category id from Allegro.pl by API
- Allegro API can't Unauthorized: 401 {"error":"Unauthorized","error_description":"Unauthorized"}
- "Peiran message result: 0" messages using the Allegro 5 game library
- C++ Allegro 5 bit depth problem windows and linux
- Getting a bunch of weird errors, Open Watcom C++ 2.0 with Allegro 4.2.3 library
- flickering in allegro with loops
- Getting memory leaks in simple C/allegro5 game
- How can I increase the size of the displayed text using a library like Allegro? C
- Allegro 5 game - bitmap drawing slows down after running for a few seconds
- How do I setup a CMake project with both Allegro and MSVC?
- Can't install/use allegro
- ALLEGRO5 change pixel color of text based on background
- How do I build a DAllegro project using dub?
- Coloring only one color of bitmap in Allegro 5
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 # Hahtags
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?
You need to load a 32-bit image, call
set_alpha_blender()and thendraw_trans_sprite(). See this discussion. TGA is the only format that Allegro 4 supports natively that is sufficient for this task. Otherwise, you'll need to look into a PNG loader add-on.You may also want to consider switching to Allegro 5 if you are just getting started. It has a much more modern API for this type of thing.