Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion NSImage problem

Received: by 10.68.232.169 with SMTP id tp9mr6690398pbc.6.1333385671647;
        Mon, 02 Apr 2012 09:54:31 -0700 (PDT)
Path: r9ni10653pbh.0!nntp.google.com!news2.google.com!news.glorb.com!usenet.stanford.edu!not-for-mail
From: gusborsa <gusbo...@yahoo.com.mx>
Newsgroups: gnu.gnustep.help
Subject: Re: NSImage problem
Date: Mon, 2 Apr 2012 09:54:19 -0700 (PDT)
Lines: 53
Approved: help-gnus...@gnu.org
Message-ID: <mailman.372.1333385670.20052.help-gnustep@gnu.org>
References: <33513960.post@talk.nabble.com> <4F636DE4.4030902@gmx.de>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
X-Trace: usenet.stanford.edu 1333385671 305 208.118.235.17 (2 Apr 2012 16:54:31 GMT)
X-Complaints-To: action@cs.stanford.edu
To: Help-gnus...@gnu.org
Envelope-to: Help-gnus...@gnu.org
In-Reply-To: <4F636DE4.4030902@gmx.de>
X-Nabble-From: gusbo...@yahoo.com.mx
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 216.139.236.26
X-BeenThere: help-gnus...@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Users list for the GNUstep programming environment
	<help-gnustep.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnustep>,
	<mailto:help-gnustep-requ...@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnustep>
List-Post: <mailto:help-gnus...@gnu.org>
List-Help: <mailto:help-gnustep-requ...@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnustep>,
	<mailto:help-gnustep-requ...@gnu.org?subject=subscribe>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable


Hi Fred, your are right, the imageUnfilteredFileTypes method returns the
following types: tiff, tif, pnm, ppm, jpeg, jpg, icns, w32vsr. The code
works OK with a jpeg image but I need the image in png format. I'm a c++
programmer and i'm not sure what steps should I follow. Remember i work on
WinXP. I downloaded the libpng setup (libpng 1.2.37) from sourceforge and I
installed it (In the default installation directory) but the problem
continues.

Thanks,




Fred Kiefer wrote:
>=20
> On 15.03.2012 23:58, gusborsa wrote:
>>
>> Hello, I=C2=B4m trying to create a NSImage object from a png type image.=
 My
>> code:
>>
>> NSImage *myImage =3D [[NSImage alloc] initWithContentsOfFile:
>> @"c:/MiProyect/Resources/imagen.png"];
>>
>> but this method returns "nil", the description message from the myImage
>> object returns (NULL).
>>
>> I Verified the path with the fileExistsAtPath (NSFileManager) method and
>> it's OK. I'm working on WinXP.
>=20
> Most likely your version of gui was build without png support. Could you=
=20
> please print out the value of:
>=20
> [NSImage imageUnfilteredFileTypes]
>=20
> If this array doesn't include "png", then you need to install libpng and=
=20
> rebuild gui.
>=20
> _______________________________________________
> Help-gnustep mailing list
> Help-gnus...@gnu.org
> https://lists.gnu.org/mailman/listinfo/help-gnustep
>=20
>=20
--=20
View this message in context: http://old.nabble.com/NSImage-problem-tp33513=
960p33545001.html
Sent from the GNUstep - Help mailing list archive at Nabble.com.