Is there and easy way to read .bmp files in native C++?
How about .jpg files?
Thanks in advance 8 2931
Hi Frank!
Is there and easy way to read .bmp files in native C++?
How about .jpg files?
How about "fopen / fread"!?
Or even "CreateFile / ReadFile"?
--
Greetings
Jochen
My blog about Win32 and .NET http://blog.kalmbachnet.de/
How would I display that?
"Jochen Kalmbach [MVP]" <no************ ********@holzma .dewrote in message
news:uE******** ******@TK2MSFTN GP05.phx.gbl...
Hi Frank!
>Is there and easy way to read .bmp files in native C++?
How about .jpg files?
How about "fopen / fread"!?
Or even "CreateFile / ReadFile"?
--
Greetings
Jochen
My blog about Win32 and .NET http://blog.kalmbachnet.de/
Hi Frank!
Is there and easy way to read .bmp files in native C++?
How about .jpg files?
Or are you looking for something like
- LoadImage (at least for BMP)
- OleLoadPicture / OleCreatePictur eIndirect
- GDI+: Bitmap::FromFil e
?
See also several examples on codeproject...
--
Greetings
Jochen
My blog about Win32 and .NET http://blog.kalmbachnet.de/
On Sat, 27 Jan 2007 10:34:44 -0500, " Frank" <fr***@a-znet.com>
wrote:
> "Jochen Kalmbach [MVP]" <no************ ********@holzma .dewrote in message news:uE******* *******@TK2MSFT NGP05.phx.gbl.. .
>Hi Frank!
>>Is there and easy way to read .bmp files in native C++?
How about .jpg files?
How about "fopen / fread"!?
Or even "CreateFile / ReadFile"?
How would I display that?
Oh, that is a different question. You should have asked that the
first time!
What do mean by "native C++". Do you mean you have to write you own
code pixel by pixel? You can't display anything on a screen in
"native C++" without using somebodies library routines and there are
numerous jpg and bmp display libraries available that you can call
from native C++. Have you tried google?
In article <ew************ **@TK2MSFTNGP05 .phx.gbl>,
Frank <fr***@a-znet.comwrote:
>Is there and easy way to read .bmp files in native C++? How about .jpg files?
Read/write? Try http://openil.sourceforge.net . Displaying is
another matter, because C/C++ doesn't have graphics as part of the
language. You'll need to find a different library that does that.
Nathan Mates
--
<*Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
"r norman" <r_s_norman@_co mcast.netwrote in message
news:qi******** *************** *********@4ax.c om...
On Sat, 27 Jan 2007 10:34:44 -0500, " Frank" <fr***@a-znet.com>
wrote:
>> "Jochen Kalmbach [MVP]" <no************ ********@holzma .dewrote in message news:uE****** ********@TK2MSF TNGP05.phx.gbl. ..
>>Hi Frank! Is there and easy way to read .bmp files in native C++?
How about .jpg files?
How about "fopen / fread"!?
Or even "CreateFile / ReadFile"?
How would I display that?
Oh, that is a different question. You should have asked that the
first time!
What do mean by "native C++". Do you mean you have to write you own
code pixel by pixel? You can't display anything on a screen in
"native C++" without using somebodies library routines and there are
numerous jpg and bmp display libraries available that you can call
from native C++.
Thanks, that's what I needed. Nothing in VS2005.
Have you tried google?
I'm such a novice I think I could easily spend much time trying things.
>
Thanks, I'll look there
"Jochen Kalmbach [MVP]" <no************ ********@holzma .dewrote in message
news:uy******** ******@TK2MSFTN GP05.phx.gbl...
Hi Frank!
>Is there and easy way to read .bmp files in native C++?
How about .jpg files?
Or are you looking for something like
- LoadImage (at least for BMP)
- OleLoadPicture / OleCreatePictur eIndirect
- GDI+: Bitmap::FromFil e
?
See also several examples on codeproject...
--
Greetings
Jochen
My blog about Win32 and .NET http://blog.kalmbachnet.de/
"Nathan Mates" <na****@visi.co mwrote in message
news:12******** *****@corp.supe rnews.com...
In article <ew************ **@TK2MSFTNGP05 .phx.gbl>,
Frank <fr***@a-znet.comwrote:
>>Is there and easy way to read .bmp files in native C++? How about .jpg files?
Read/write? Try http://openil.sourceforge.net . Displaying is
another matter, because C/C++ doesn't have graphics as part of the
language. You'll need to find a different library that does that.
I thought once I had the files data into a BITMAP I could SelectBitmap it
into a device context and the BitBlt it to whatever.
No?
>
Nathan Mates
--
<*Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A.
Heinlein
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: JW |
last post by:
I'm displaying product thumbnails with brief descriptions on web pages. Clicking
on the product does a javascript popup with larger image and detailed
description info passed to the javascript functions from the table data.
Products can change frequently, and I want to make the maintenance of this
info easier by non-techies (each product has an image name, image width
(currently not using getimagesize), a short description, and a long...
|
by: James Dean |
last post by:
I was wondering if anybody knew and easy way to read pixels. Is the
easiest way to read a byte in convert it to a Bitarray and then when
finished convert it back to Byte......I am looking in my monochrome
bitmap file now at the minute.....if a value is false then the pixel is
turned off and therefore its white......but this does not seem to be
true.....could anyone explain how exactly to use this bitarray.....i
have a monochrome bitmap...
|
by: Pete Mahoney |
last post by:
Uploading the file to the server is no problem, but I don't want an
admin to upload some document to the server, and then have someone
able to change this document. I simply want to set read only on all
files uploaded to the server. Is there a simple way to do this in
ASP.Net?
|
by: marcus.kwok |
last post by:
I am having a weird problem and I have can't figure out why it is
happening. I create an OpenFileDialog and set a filename filter. When
the dialog first opens, the filter works correctly, and only the files
I want to see appear in the file list box. When I change the filter to
one of the other filters, all the files in the list disappear. If I
then manually type a filter into the "Filename" textbox, then the files
appear and the filter...
|
by: Rob Meade |
last post by:
Dear all,
We have purchased a product called SA-FileUp which we have used in our
organisation for a number of years, I'm quite an an avid supporter of it,
recently I've been trying to ensure some of our older applications which
used native .Net uploading moved across to our .Net implementation of
SA-FileUp.
Because there is development time involved in this I have now been asked by
my manager to "test" both native and SA techniques to...
| |
by: David Lowndes |
last post by:
I've got a project with a fair bit of mixed C++/CLI calling native
code, often passing raw pointers - and I'm worrying that we may have
occasions where we don't use pin_ptr when we need to.
However, after a few experiments I was unable to compile code (VS2005)
that casually tried to do the wrong thing.
So, is anyone aware of any common gotchas where you can have code that
compiles cleanly (and works in all tests) that's not using...
|
by: mazwolfe |
last post by:
Someone recently asked about reading lines. I had this code written
some time ago (part of a BASIC-style interpreter based on H. Shildts
in Art of C) to read a file with the lines ended in any format:
Microsoft-style CR/LF pair, Unix-style NL, or Mac-style CR. It also
allows for EOF that does not follow a blank line. I thought this would
make text-file sharing a bit easier.
Here it is:
/* Load a file, normalizing newlines to *nix...
|
by: Wayne |
last post by:
I've read that one method of repairing a misbehaving database is to
save all database objects as text and then rebuild them from the text
files. I've used the following code posted by Lyle Fairfield to
accomplish the first step:
Private Sub SaveObjectsAsText()
path = CurrentProject.path & "\ObjectsAsText\"
SaveDataAccessPagesAsText
SaveFormsAsText
SaveReportsAsText
|
by: Jrdman |
last post by:
hi there
can any one write a C code that search for files in a directory
without using the windows apis(FindFirstFile() and FindNextFile())
or even has a small idea on how to do that.
thanks.
|
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: 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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: 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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |