|
Your question might lead to several philosophical discussions, because it is not at all specific. So, it is not easy to try to use proper definitions without a minimum context to focus on. Anyway, I'll try.
A picture is a general term for a visual representation of something. A picture, by this definition, has to contain both aspects: it must be a representation, and it must be visual.
A bitmap, by itself, will not be a picture. It will just be a sequence of bits. It will become a picture when you display it on a screen, or when you print it on a piece of paper, or when you make it visible in any way.
So, generally speaking, a bitmap is a way to store image data, so that it can be represented as a picture (when used by a display device). Note that so do JPEG, TIFF, GIF, PNG, and many more image data storage formats. None of them are pictures until they are displayed.
Most often with computers the term bitmap is used to refer to the storage of picture data without compression. In this form, there is a data unit for each pixel. For example, an RGB bitmap will contain 3 bytes for each pixel. In a 6 mega-pixel image from your digital camera the bitmap would then have 18 MB in size.
The general oposite of using the term bitmap is usually to refer to compressed images. In these formats, a data unit is used to represent a larger number of pixels. For example, a high quality JPEG would typicall have 0.3 bytes per pixel (about 10 times less than bitmaps). By allowing JPEG compression to discard more and more information then you can have as few as 0.06 bytes per pixel (a single byte will generate enough information to draw more than 16 pixels) and you may still recognize the picture it intends to represent. There are also, of course, lossless compression formats.
To back this up here are google's definitions:
define:picture - a visual representation (of an object or scene or person or abstraction) produced on a surface; "they showed us the pictures of their wedding"; "a movie is a series of images projected so rapidly that the eye integrates them"
define:bitmap - The method of storing information that maps an image pixel, bit by bit. There are many bitmapped file formats, .bmp, .pcx, .pict, .pict-2, tiff, .tif, .gif (89a), and so on. Most image files are bit mapped. This type of file gives you the ´jaggies´, when examined closely you can see the line of pixels that create edges. Bitmap images are used by all computers. The desktop or screen information for all Windows machines uses .bmp files, while the Macintosh uses pict files.
If you take these definitions too far you will run into problems. People could argue that you can have a bitmap of all black pixels, representing no light at all, and that that bitmap can never be represented as a picture. The basis for this argument, is that since a picture is defined as a visual representation, then it must contain some light. If it does not show any light then it is not a picture. However, the bitmap can have all its pixels coded as "light absence" (or black) thus, in fact, that bitmap could be said to represent no picture.
|
|
|
|
|
Custom Command Routing for Different Views in SDI.
Hi all,
I have a Tree View and List View as a Splitter View. I have menus for both of them i want to implement Custum Command Routing both of the Views.
Please Help me out.
thanks and regards,
uday.
-- modified at 2:27 Tuesday 4th July, 2006
|
|
|
|
|
How can i delete a directory...?????
"Dream bigger...Do bigger...Expect smaller"
aji
|
|
|
|
|
use system(...) and run dos command rmdir using system(...)
Good luck
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
RemoveDirectory()
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I think this will work only if the directory is empty.
"Dream bigger...Do bigger...Expect smaller"
aji
|
|
|
|
|
see _rmdir function
whitesky
|
|
|
|
|
Yes this works only in case when the directory is empty. You will have to use the SHFileOperation which deletes the files recursively in a folder to first empty the directory and then Remove it.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
<br />
HANDLE hResource;<br />
LPCTSTR lpData;<br />
lpData = (const char*)L"Halo";<br />
<br />
hResource = BeginUpdateResource("Sample.exe", TRUE);<br />
if (NULL != hResource)<br />
{<br />
if (UpdateResource(hResource, <br />
RT_STRING, <br />
"IDS_TOTAL", <br />
MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US), <br />
(LPVOID)lpData, <br />
sizeof(lpData)) != FALSE)<br />
{<br />
EndUpdateResource(hResource, FALSE);<br />
}<br />
}<br />
I am trying to update a string resource in an executable named Sample.exe, IDS_TOTAL whose value is "Hi there" to "Halo". The resource is modified, but if I check the value updated in that executable, it is blank. Is there anything wrong in the above code?
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
I think instead of:
if(UpdateResource( ..., "IDS_TOTAL", ...) != FALSE)
you should consider:
if(UpdateResource( ..., MAKEINTRESOURCE(IDS_TOTAL), ...))
I hope this works.
|
|
|
|
|
you can see a article from Mr David Crow (i think was resource) of course maybe its not your answer but i think its good for you
whitesky
|
|
|
|
|
|
hi i want to write an application just like PC any where.just confused where to start. i had couple of ideas.
on is that capture the screen as bitmap and send it to another computer that will show it to the user.but dont know where the user had clicked on static bitmap and get all pts.any idea is welcomed
Tasleem Arif
|
|
|
|
|
Checkout http://ultravnc.sourceforge.net/[^].
This is an open source project wich has been very successful. I have been using it for several years now, and it works just fine, especially the latest Ultra version.
To be honest, I don't know why you would want to develop a new project for this, since Ultra VNC works very well.
Rilhas
|
|
|
|
|
ok i will check that.i want to write it bcos to gain knowledge and put some new feature as well.
thanks for the help.i had worked on windows hooks and transfer of bitmap but one problem hit me how to know that in which place of image one had clicked and on the basis of that open that folder/file on other side.
Tasleem Arif
|
|
|
|
|
Hello everyone!
Has anyone ever coded or seen a piece of code that does the exact same thing as the Beep() function in the Kernel32.dll file in the Windows NT family? Maybe some assembly code? I really need this, I really don't like being stuck to half a platform... (Not even a full one, since Win9x isn't supported).
Thanks!
PD: For those of you that don't know about the Beep() function, it takes 2 arguments: frequency (the frequency, if you set it to about 9999 or more, only the dog can hear it ) and duration (how much it lasts).
\|/ Thrift Store Floppy Collection \|/
(Server currently down due to mainteneance, aka comp not detecting monitor and acting weird)
|
|
|
|
|
|
No, I need to be able to specify the frequency and duration... Thanks!
\|/ Thrift Store Floppy Collection \|/
(Server currently down due to mainteneance, aka comp not detecting monitor and acting weird)
|
|
|
|
|
<br />
#include <dos.h><br />
void main()<br />
{<br />
sound(900);
delay(1000);
nosound();
}<br />
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
ltdos.h ? You sure you spelled that right? Google only yells out 2 results... If you are, for which compiler is that? Is it only for DOS? Anyways, thanks!
\|/ Thrift Store Floppy Collection \|/
(Server currently down due to mainteneance, aka comp not detecting monitor and acting weird)
|
|
|
|
|
It is dos.h not ltdos.h
Regards,
Brahmma
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
Oh, I see - "<" is "<" in HTML!
Anyways, yeah, that's only for DOS...
Windows Calculator told me I will die at 28.
|
|
|
|
|
Hello everyone,
It is well known that DLL file can be used across different linkers, for example, a DLL created by VC can be linked with a VB application. In my context, I mean implicit linking.
I think without COM, there is no binary file standard. So, if there is no binary standard, how can a VB linker know which function it can invoke, which parameter it should provide and which address the invoked function resides (in order to invoke the function)? -- there must be some binary file level standard, right? besides COM?
I think this issues is solved by providing an accompany lib file with the DLL file in order to let other linker work with the DLL, but I am not sure about the internal reason. We know that an ordinary object file build by one compiler can not be used with other linkers -- but DLL overcomes this point -- because of the lib file?
thanks in advance,
George
|
|
|
|
|
The binary file standard is plain C, and the dll uses an ordinal table IIRC. Works pretty well as long as all you want is C. That's why if you examine, eg, GetProcAddress you do lookups with function names, and the returned pointers are untyped.
Problems with other things such as C++ -- hence the need for COM -- come from (1) no standard name mangling, (2)automatic memory management (allocate mem, constructors, destructors, etc) and needing to know the internals of the class structure, (3) the desire for strong versioning and strong interfaces, (4) exceptions handling (compiler specific again), (5) the fact that C++ isn't particularly object oriented at run time -- all sorts of places need to know the exact details of class layout, so it can't ever change. etc.
Grab a book by Don Cox called _Essential COM_
earl
|
|
|
|
|
Thank you earl,
Maybe I have not made myself understood enought. The purpose of my post is not to discuss COM, but to make clear why DLL can be used across linkers (for example, DLL created by VC can be linked in an VB application), while at the same time object file (which is generated by compiler) can not be used across linker (for example, we can not link an obj file generated by VC7 in a VC6 application). Since DLL and obj file are both binary files, why DLL can be used across linker but obj file can not? What is the internal reason?
regards,
George
|
|
|
|
|