I was just wondering if there is way to output more than 16 colours in graphics.h? I am using Ubuntu 12.04, and currently I can only output 16 colours. I have been trying to find a way to do it, but have not been able to do so. I feel it has something to do with the parameters passed to the initgraph function. I would like to be able to draw 8 bit and even 24 or even 32 bit per pixel bitmaps in graphics.h in C++ in Ubuntu 12.04.
more than 16 colours on graphics.h in C++ in Ubuntu 12.04
291 Views Asked by user904542 At
0
There are 0 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 BITMAP
- How can I extract the bounds of a bitmap in a canvas from the values in the transformation matrix?
- Displaying bitmap image on Android (OpenCV)
- Change color of bitmap by color Transform Matrix not working
- TImagelist for large images
- crop bitmap in screen size from custom width
- Bitmap too large to be uploaded into a texture (3000x1547, max=2048x2048)
- Converting Bitmap to ByteArray and back to Bitmap not working
- Trying to make a random pixel in a bitmap a new color, but it is giving an error why
- Resizing images failing on start, setContentView & bitmap factory[android]
- Pass image URL/URI from Activity A to open as Image in Activity B Android
- Draw cirble bitmap in onDraw() ImageView without creating another bitmap
- android Bitmap Subsampling of Image
- fast converting Bitmap to BitmapSource wpf
- How to save image to sdcard when using Fresco?
- How to check each bit in 16 bit address in C
Related Questions in UBUNTU-12.04
- copying file from local machine to Ubuntu 12.04 returning permission denied
- Linux command to retrieve desired lines
- Display every copy of duplicated stream in VLC
- Difference in terminal and PHP curl versions
- rsyslog to resend event from client after abnormal server crash
- Heroku error when trying to launch foreman
- Removing first defined function in bashrc
- find files belonging to a user with size in mb on Ubuntu
- mysql error : not accessible as a command
- contentbox integration with oracle on lucee server
- touch on Monitor with TUIO doesn't work on ubuntu
- md5sum validation for a file
- Tomcat shutsdown at load test
- Unable to use parse from my android device in Ionic App
- How to install newer imagemagick with webp support in Travis CI container?
Related Questions in BGI
- the following code always stuck and the window hangs
- Program with graphics being aborted, even though XInitThreads was called
- Graphics header fails to compile?
- Give Changing Different colors to a shape
- How can I display images on the output screen using ASCII code in C++?
- Making a circle orbit in a circular path around another circle in C++
- How to detect a mouse click on a polygon with WinBGIm?
- how can i change the b-spline curves from 4 point to 6?
- Graphics.h Not Working in VS Code version 1.15.1
- Midpoint Circle algorithm not working for unequal center coordinates
- How can I compile and run programs using graphics.h in code::blocks?
- Bresenham's line drawing Code
- Would anyone know how to fix this conflicting types error im having on GCC while trying to use <graphics.h> on linux?
- C C++ Graphics program in Linux
- Undefined references when using graphics.h?
Related Questions in BPP
- How can I compress jpeg image with compression rate 4 bpp or less?
- Replace implementation of bean in spring library project
- sdl surface where bpp = 1
- What is the highest bit depth greyscale image I can export from FreeImage?
- 32 bit depth jpg images problem in IE when referenced locally
- Android: Save Bitmap object as a bmp (1bpp) file format
- Create a 1bpp (bit per pixel) image in OpenCV with C++
- How to initialize 48bpp bitmaps from RGB?
- Imagemagick maximum colors and scaling
- Reduce bit-depth of PNG files from the command line
- Including Rcpp in a Qt project results in error affecting different included library
- How to convert a byte array of 19200 bytes in size where each byte represents 4 pixels (2 bits per pixel) to a bitmap arranged as 320x240 characters
- gcc compiling errors using macOS BigSur M1 chip
- How to programmatically determine bpp and pixel color format of android screen?
- more than 16 colours on graphics.h in C++ in Ubuntu 12.04
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?