Hi everybody,
when I try to compile a program that uses image Magick++ lib, I get the following error:
error: argument of type `unsigned int (Magick::Image::)()
const' does not match `const unsigned int'
here is the code:
// new Image
Image glyph(bitmap.width,bitmap.rows, "K", CharPixel, bitmap.buffer);
// this leads to the error:
unsigned int const c = buchstabe.columns;
My first attempt was to use:
PixelPacket *pixel_cache = glyph.getPixels(0,0,glyph.columns,glyph.rows);
but then I get the error:
error: no matching function for call to `Magick::Image::
getPixels(int, int, <unknown type>, <unknown type>)'
/usr/include/Magick++/Image.h:1134: error: candidates are:
MagickLib::PixelPacket* Magick::Image::getPixels(int, int, unsigned int,
unsigned int)
Any help is very apreciated, because i'm stuck on this.
Greetz
Timo 3 3286
"Timo Freiberger" <te****@gmx.de> wrote in message
news:pa****************************@gmx.de... // new Image Image glyph(bitmap.width,bitmap.rows, "K", CharPixel, bitmap.buffer); // this leads to the error: unsigned int const c = buchstabe.columns;
It's hard to know without seeing your header files, but could you be
neglecting to call a function?
That is, could it be that you need to write something like this?
unsigned int const c = buchstabe.columns();
where the parentheses say to call the function?
Andrew Koenig posted: "Timo Freiberger" <te****@gmx.de> wrote in message news:pa****************************@gmx.de...
// new Image Image glyph(bitmap.width,bitmap.rows, "K", CharPixel, bitmap.buffer); // this leads to the error: unsigned int const c = buchstabe.columns;
It's hard to know without seeing your header files, but could you be neglecting to call a function?
That is, could it be that you need to write something like this?
unsigned int const c = buchstabe.columns();
where the parentheses say to call the function?
This seems the likely cuplrit.
The other (but unlikely) possiblity is that "columns" is a member
variable which is a function pointer.
-JKop
On Sat, 30 Oct 2004 16:37:29 +0200, Timo Freiberger <te****@gmx.de>
wrote: Hi everybody,
when I try to compile a program that uses image Magick++ lib, I get the following error:
error: argument of type `unsigned int (Magick::Image::)() const' does not match `const unsigned int'
here is the code:
// new Image Image glyph(bitmap.width,bitmap.rows, "K", CharPixel, bitmap.buffer); // this leads to the error: unsigned int const c = buchstabe.columns;
My first attempt was to use:
PixelPacket *pixel_cache = glyph.getPixels(0,0,glyph.columns,glyph.rows);
but then I get the error:
error: no matching function for call to `Magick::Image:: getPixels(int, int, <unknown type>, <unknown type>)'
^^^^ ^^^^
Just a guess ... try this:
PixelPacket *pixel_cache =
glyph.getPixels(0,0,glyph.columns(),glyph.rows());
/usr/include/Magick++/Image.h:1134: error: candidates are: MagickLib::PixelPacket* Magick::Image::getPixels(int, int, unsigned int, unsigned int)
--
Bob Hairgrove No**********@Home.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: modemer |
last post by:
If I define the following codes:
void f(const MyClass & in) {cout << "f(const)\n";}
void f(MyClass in) {cout<<"f()\n";}
MyClass myclass;
f(myclass);
Compiler complain that it can't find...
|
by: Sensei |
last post by:
Hi.
I have a problem with a C++ code I can't resolve, or better, I can't see
what the problem should be!
Here's an excerpt of the incriminated code:
=== bspalgo.cpp
// THAT'S THE BAD...
|
by: Henrik Goldman |
last post by:
Hi,
I'd like to use std::set to get a uniqueness between a set of (unsigned char
*) with fixed known lengths.
So I thought I would write my own class which holds this:
class CUnique
{
|
by: Susan Rice |
last post by:
I'm comparing characters via
return(str1 - str2);
and I'm having problems with 8-bit characters being treated as signed
instead of unsigned integers. The disassembly is using
movsx ...
|
by: Bobrick |
last post by:
Hi.
Thanks to everyone who replied to my last post, it turns out it wasn't
the line where I was trying to treat the variable in question as an
array which was the problem, but the line above.
...
|
by: =?iso-8859-2?B?SmFuIFJpbmdvuQ==?= |
last post by:
Hello everybody,
this is my first post to a newsgroup at all.
I would like to get some feedback on one proposal I am thinking about:
--- begin of proposal ---
Proposal to add...
|
by: abendstund |
last post by:
Hi,
I have the following code and trouble with ambiguity due to operator
overloading..
The code is also at http://paste.nn-d.de/441
snip>>
|
by: Steven |
last post by:
Hello, everyone!
I find a version of strcpy(), I don't know why it return the unsigned
char value.
Can I change it into return *s1-*s2?
int strcmp(const char *s1, const char *s2)
{
while...
|
by: Alex Vinokur |
last post by:
Hi,
Is it possible to do C++-casting from
const pair<const unsigned char*, size_t>*
to
const pair<unsigned char*, size_t>*
?
Alex Vinokur
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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...
|
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...
| |