473,395 Members | 1,656 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

displaying 24 bit colours using C

hi guys, got anything on this issue?

Mar 1 '06 #1
9 2126

piyush2...@gmail.com wrote:
hi guys, got anything on this issue?


Nothing, sorry. Wrong door...

--
BR, Vladimir

Mar 1 '06 #2
pi********@gmail.com said:
hi guys, got anything on this issue?


(The issue in question is that of displaying 24 bit colours using C.)

The C language is so popular at least in part because it is widely
available, on a huge range of platforms, by no means all of which are
capable of displaying any colours at all, let alone 24-bit colour.

Personally, I think it would be a good thing for C to specify a basic set of
graphics primitives (including a function to enquire just what, if any,
graphics hardware is available on the system in question) - but it doesn't.

The language instead leaves the entire issue in the hands of third-party
library developers.

The kind of library you'll need to use for displaying colour depends largely
on your platform. For discussing platform-specific issues such as this, you
will find it more profitable to enquire on a newsgroup devoted to the
platform you are targetting.

Possibilities include news:comp.os.ms-windows.programmer.win32 and
comp.unix.programmer (among others).

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Mar 1 '06 #3
I meant to ask whether its possible to display 24 bits colour pixels
using assembly in C .
I was able to display 64K colours using assembly but failed to display
24 bit colours because
probably my VESA card does'nt support this. But possibly I could
directly use the monitor
for the same without using any intermediate service. Anyone - Please!

Mar 1 '06 #4

voldemort wrote:
I meant to ask whether its possible to display 24 bits colour pixels
using assembly in C .
I was able to display 64K colours using assembly but failed to display
24 bit colours because
probably my VESA card does'nt support this. But possibly I could
directly use the monitor
for the same without using any intermediate service. Anyone - Please!


And how on earth do you think this is a question related to C? Your
original post actually might have been vaguelly topical in the sense of
the reply that Richard bothered to post elsethread. Dragging assembly
(not to mention graphic cards and monitors which are not even software
devices) into it makes it stratospherically off-topic.

Also, quote what and who you're replying to. If you use Google, click
Show Options and then Reply that appears below headers. It works, and
is good manners 'round here.

--
BR, Vladimir

Mar 1 '06 #5
"Vladimir S. Oka" <no****@btopenworld.com> writes:
[...]
Also, quote what and who you're replying to. If you use Google, click
Show Options and then Reply that appears below headers. It works, and
is good manners 'round here.


Vladimir, if you're going to give this advice, please consider also
citing <http://cfaj.freeshell.org/google/>. It explains the issue
more clearly than we can do here in a single post, and it also has a
number of useful links on Usenet etiquette.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Mar 1 '06 #6
Keith Thompson wrote:
"Vladimir S. Oka" <no****@btopenworld.com> writes:
[...]
Also, quote what and who you're replying to. If you use Google, click
Show Options and then Reply that appears below headers. It works, and
is good manners 'round here.


Vladimir, if you're going to give this advice, please consider also
citing <http://cfaj.freeshell.org/google/>. It explains the issue
more clearly than we can do here in a single post, and it also has a
number of useful links on Usenet etiquette.


I know I should. Posting from the office, I'm forced to use Google (you
can tell by the absence of fortunes). I found it easier to quickly type
the instructions (I'm posting from a tiny, and not very powerful
laptop). It'd be handy if Google allowed sigs.

--
BR, Vladimir

Sometimes, too long is too long.
-- Joe Crowe

Mar 1 '06 #7
Keith Thompson wrote:
"Vladimir S. Oka" <no****@btopenworld.com> writes:
[...]
Also, quote what and who you're replying to. If you use Google, click
Show Options and then Reply that appears below headers. It works, and
is good manners 'round here.


Vladimir, if you're going to give this advice, please consider also
citing <http://cfaj.freeshell.org/google/>. It explains the issue
more clearly than we can do here in a single post, and it also has a
number of useful links on Usenet etiquette.


Could it also be a good idea to direct people to c.l.c Wiki
(clc-wiki.net, I could remember this)? Or is it not mature enough yet?

--
BR, Vladimir

There was a young girl of Penzance
Who boarded a bus in a trance.
<censored>,
Likewise the conductor,
While the driver shot off in his pants.

Mar 1 '06 #8
> Vladimir S. Oka wrote:
voldemort wrote:
> > I meant to ask whether its possible to display 24 bits colour
> > pixels using assembly in C .
> > I was able to display 64K colours using assembly but failed to
> > display 24 bit colours because
> > probably my VESA card does'nt support this. But possibly I
> > could directly use the monitor
> > for the same without using any intermediate service. Anyone -
> > Please!

And how on earth do you think this is a question related to C?
Your original post actually might have been vaguelly topical in
the sense of the reply that Richard bothered to post elsethread.
Dragging assembly (not to mention graphic cards and monitors which
are not even software devices) into it makes it stratospherically
off-topic.

Also, quote what and who you're replying to. If you use Google,
click Show Options and then Reply that appears below headers. It
works, and is good manners 'round here.>thanks Vladimir. I am new to this & hence it will take time to
>>adapt. As far as this being a Qn. related to C , it definitely
>>is , since I am using C to implement it. But it also requires
>>the knowledge of h/w connected to the comp. The point is that
>>Windows uses the true color (16million) mode & if my monitor is
>>able to support that , then there must be a way by which the same
>>task is implemented using a language like C maybe by calling
>>the routines that Windows calls internally. After all this is
>>what is the advantage of C - being close to hardware. So is there
>>a way by which C can make use of subroutines that Windows
>>makes to be able to display ~16million colours.


You should have clicked the sole "Reply", not "Reply to Author". You're
lucky my e-mail address was real. I had to fish this out of my mail
client. ;-)

For a host of information about c.l.c, please have a look at
http://clc-wiki.net/, and for general posting guidelines when using
Google, at http://cfaj.freeshell.org/google/

Back to your post...

At least in c.l.c the fact that you use C to access graphics
capabilities of your hardware/OS does not make your questions
automatically topical. Yes, you generally access this functionality by
calling certain OS functions, but these are non-standard (i.e. not part
of the ISO Standard C), and off-topic here. They are topical in the
groups that deal with your OS or graphics libraries.

BTW, the benefit of C is not that it's close to the hardware. These days
it's mostly the fact that Standard C is available for almost any
hardware/OS combination you can imagine, thus making writing portable C
code much easier.

--
BR, Vladimir

Alas, I am dying beyond my means.
-- Oscar Wilde [as he sipped champagne on his deathbed]

Mar 1 '06 #9
Vladimir S. Oka wrote:
Keith Thompson wrote:
"Vladimir S. Oka" <no****@btopenworld.com> writes:
[...]
Also, quote what and who you're replying to. If you use Google, click
Show Options and then Reply that appears below headers. It works, and
is good manners 'round here.

Vladimir, if you're going to give this advice, please consider also
citing <http://cfaj.freeshell.org/google/>. It explains the issue
more clearly than we can do here in a single post, and it also has a
number of useful links on Usenet etiquette.


Could it also be a good idea to direct people to c.l.c Wiki
(clc-wiki.net, I could remember this)? Or is it not mature enough yet?


I would say that the intro to CLC is fine hence the link in my sig, and
it has links to other useful resources. Other areas still need a lot of
writing.
--
Flash Gordon, living in interesting times.
Web site - http://home.flash-gordon.me.uk/
comp.lang.c posting guidelines and intro:
http://clc-wiki.net/wiki/Intro_to_clc
Mar 5 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Els | last post by:
Hi, I would like an opinion on the following: I have a page which is made up of background-images with transparent linked images in front of it, which on hover show text in CSS popups. Due to...
3
by: Peter Williams | last post by:
Hi All, I want to write some javascript for a html page which does the following. Imagine that the page contains a table with 2 columns and 3 rows, e.g.: +---+---+ | A | B | +---+---+
8
by: Doug Laidlaw | last post by:
I tried to grab an image from a Web page the other day. It turned out that the page was made up of three horizontal bands, and part of the image was in each. One band was a JPEG, another was a...
1
by: Piotrek Stachowicz | last post by:
Hi there, I'd like to display list of items in my form. Each item has 3 properties i.e. description , picture (1 of 3 kinds), and url. I want to display it in nice way, e.g. every second row...
0
by: Rui Oliveira | last post by:
I am using a tree from CTreeCtrl. To create the imagelist I am using a bitmap with 256 colours. But the icons in my tree only appear with 16 colours. What is supposed to do to have icons...
4
by: gkumar007 | last post by:
Greetings, Are there any HTML editors which support syntax highlighting of c program source code. Let's say I write my html code as follows: <html> <body> <code> #include<stdio.h>
5
by: Jameson | last post by:
Hi, I have a list of known colours, generated using: Dim colorNames As New System.Collections.Generic.List(Of String) For Each known As KnownColor In .GetValues(GetType(KnownColor)) Dim...
11
by: Marge | last post by:
After importing a VB6 project into Express 2008 I have two gif's with transparency do not display correctly. In VB6 these pictures where used with the image object which had different properties...
2
by: Sodrohu | last post by:
Currently I got a thermal image mapping program which converts grayscale pictures to RGB. Now, what I need to do is to convert those 3 RGB colors into other three colours. The choice of colours are...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.