hi guys, got anything on this issue? 9 2164
piyush2...@gmai l.com wrote: hi guys, got anything on this issue?
Nothing, sorry. Wrong door...
--
BR, Vladimir pi********@gmai l.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.program mer.win32 and
comp.unix.progr ammer (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)
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!
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 stratospherical ly 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
"Vladimir S. Oka" <no****@btopenw orld.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_Keit h) 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.
Keith Thompson wrote: "Vladimir S. Oka" <no****@btopenw orld.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
Keith Thompson wrote: "Vladimir S. Oka" <no****@btopenw orld.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.
> 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 stratospherical ly 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]
Vladimir S. Oka wrote: Keith Thompson wrote:
"Vladimir S. Oka" <no****@btopenw orld.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 appropriate alt text, anyone viewing the page with images
turned off, will see the alt text instead, and on hover will see the
popups.
|
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 |
+---+---+
|
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 GIF and I have forgotten what
the main page was.
Apart from lining up the parts of the image, there was no discrepancy in
colours between the two formats. Is that what "Web-safe" means? I thought
that it just meant that the colours would be the...
|
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 should have different background, additionaly I'd like the
background to change (3rd color) when mouse is hovering over the row.
Moreover I'd like to support drag 'n' drop on each item. User cannot change
anything on the list.
|
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 with 256 colours in tree?
This is my code:
-------------------------------------------------------------
| |
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>
|
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 specific As Color = Color.FromKnownColor(known)
|
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 to the picturebox unfortunately there only seems
to be the picturebox option in the toolbox of Express 2008?
any ideas/help PLEASE :o)
|
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 white, black, red, green and blue.
To explain more, for the thermal mapping using grayscale converted to RGB, red denotes hot areas, green-zero, and blue-cold. What I want to do is to make a program that enables you to choose the colours from the...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |