Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Martin Newsgroups: comp.lang.clipper.visual-objects Subject: Re: PNG viewing within VO Date: Tue, 14 Feb 2017 12:01:55 +0000 Organization: A noiseless patient Spider Lines: 48 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 14 Feb 2017 12:00:06 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="dea448840f9b1b4f93095ed0ef1ef008"; logging-data="4310"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FwlXnNzpcxeHQzNUkSvQv" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 In-Reply-To: Cancel-Lock: sha1:Emk63Kz4941QUGypHOx723eBOxA= Xref: csiph.com comp.lang.clipper.visual-objects:10156 Thankyou On 07/02/2017 10:08, Wolfgang Riedmann wrote: >> For now I hope to do explorer calls, but I would like to integrate it >> better. >> >> Currently I can handle bitmaps using classes and functions working >> back to CreateDIBitmap, I display in BBrowser, or a pushbutton. >> >> Is there anything similar for PNG? > > from the VO help file: > > > > DIBCreateFromFile() Function > > Purpose > > Create a device independent bitmap (DIB) from an image file. > > > Syntax > > DIBCreateFromFile() ---> pDIB > > > Arguments > > Name of the new DIB file. > > Returns > > Pointer to DIB data which can be displayed; otherwise, NULL_PTR. > > Description > > DIBCreateFromFile() creates a device independent bitmap (.DIB file) > from an image file of the following types: .JPG, .TIF, .BMP, .TGA, > .PNG, .PCX, or .PCT. > > Prototype > > DIBCreateFromFile( pszFName AS PSZ) AS PTR PASCAL > > >