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++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in IMAGE
- Add image to JCheckBoxMenuItem
- Display images on Django Template Site
- How to resize images with PHP PARSE SDK
- Animation in Java on top of JPanel
- Slow performance on ipad erasing image
- What are the pros and cons of the picture element?
- Carrierwave file upload with different file types
- How to use annotorious with angular
- Images not showing when uploaded to server
- ImageView doesn't show up
- Image Resizing adjusts ratio
- Displaying bitmap image on Android (OpenCV)
- Class 'Imagick' not found - PHP and Windows
- Image position - randomly select position
- Replace image 1 with image 2 after 5 sec
Related Questions in TRANSPARENCY
- How can I add a transparent tkinter image in Python 3.3.2?
- Transparent RichTextBox with Graphic not showing Text
- How to remove UINavigationBar transparency in iOS8?
- Fluid login form with different transparency of background holder
- Set mesh transparency Meshlab
- Android OpenGL Transparent Texture Draws Black
- Is it possible to have a element transparent and see through his parent opaque background
- In CSS3, using `transparency` with `gradient` doesn't work?
- OpenLayers3: best way to display multiple WMS layers in trasparency
- Windows Form Application - Transparent PictureBox Image overwrites Form Transparency
- WS_EX_TOOLWINDOW with TransparencyKey causes Win32Exception
- ImageMagick: How to make both black and white transparent?
- Clear Transparent Background for QWidget
- How can I apply a fade-out-text effect with a transparent-to-white gradient?
- Trouble with Transparent Background in scene created with Three.js Editor
Related Questions in DRAW
- Javascript drawing board with columns of alternating colors using ctx
- Drawing on a panel but when adding it through another frame, nothing draws
- Draw triangle by the intersect of 3 circles
- When is Datagridview's Paint and Cellpainting called?
- Create a draw() function inside other function in Javascript Processing
- How to create a custom circled UIView with two different colors?
- Canvas draw text vertically
- Daw line between 2 points
- Owner Draw Button Force Refresh
- Add white rectangle above a screenshot in a Graphics object (java)
- Draw arbitrary convex shape knowing the lengths of its sides
- Error while drawing net in Caffe
- How to correctly position a "X" in a rectangle?
- Arduino timed void draw() loops
- NG-Grid + Flot chart only redraw when resizing browser window
Related Questions in ALLEGRO
- How can I simulate a nested function without lambda expressions in C++11?
- Allegro 4.4.2 On Visual Studio 2013 Unhandled Exception
- Allegro 4 text output
- How to make a program run on other computers?
- allegro/c++ cannot convert argument 3 from 'const char *' to 'char *'
- Multiple definition errors; C++ working with Allegro
- Allegro sound not working (playing wav file)
- MSCVR110d.dll Missing in Allegro / VS Set Up
- Allegro pong collision problems
- Porting Autodesk Animator Pro to be cross platform
- Allegro question, how can I get rid of the cmd window?
- Allegro4/C++ giving error
- C++: Erasing an iterator from a map and then incrementing to the next iterator
- Is it possible to add sources of Allegro library to Code::Blocks project?
- Instaling latest version of Allegro with Code Blocks
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?
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.