Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #1746
| From | "Fred Killet" <killet-nospam@killetsoft.de> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| References | <4e2a8cba$0$6572$9b4e6d93@newsspool3.arcor-online.net> <ALVWp.68289$J65.19575@newsfe14.ams2> |
| Subject | Re: IPictureDisp object |
| Date | 2011-07-25 13:24 +0200 |
| Message-ID | <4e2d5259$0$6571$9b4e6d93@newsspool3.arcor-online.net> (permalink) |
| Organization | Arcor |
Hi Malcolm,
yes, you are right.
With the code below now I am able to write a Windows content with the OLE
function OleSavePictureFile() to a file. But it only allows to write BMP
files, not GIFs and JPGs. What must I do to write to GISs and/or JPGs?
Here is a code snipped:
strPictDesc.cbSizeofstruct := _SizeOf(_winPICTDESC)
strPictDesc.uPICTDESC.bmp.hbitmap := pBitmap
strPictDesc.uPICTDESC.bmp.hpal := pPalette
strPictDesc.picType := PICTYPE_BITMAP
IF OleCreatePictureIndirect(@strPictDesc,@IID_IPicture,TRUE,@oIPicture) ==
S_OK
IF .not. oIPicture == NULL_OBJECT
lReturn := FALSE
IF oIPicture:QueryInterface(@IID_IPicDisp,@pIpDisp) == S_OK
IF .not. pIpDisp == NULL_PTR
cFileName := convAnsi2Unicode(cFileName)
IF OleSavePictureFile(pIpDisp,PSZ(_CAST,cFileName)) == S_OK
lReturn := TRUE
ENDIF
ENDIF
ENDIF
oIPicture:Release()
ENDIF
ENDIF
Regards, Fred
--
Fred Killet
killet-nospam@killetsoft.de
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
IPictureDisp object "Fred Killet" <killet-nospam@killetsoft.de> - 2011-07-23 10:56 +0200
Re: IPictureDisp object "Fred Killet" <killet-nospam@killetsoft.de> - 2011-07-24 08:18 +0200
Re: IPictureDisp object malcolm gray <malcolm.gray@ntlworld.com> - 2011-07-24 15:12 +0100
Re: IPictureDisp object "Fred Killet" <killet-nospam@killetsoft.de> - 2011-07-25 13:24 +0200
Re: IPictureDisp object "Fred Killet" <killet-nospam@killetsoft.de> - 2011-08-05 09:48 +0200
csiph-web