Digital Photo Album

Digital Photo Album Software

Slide Show Software and Photo Album Software Photo Album Software and Digital Photo Album Photo Album Software and Slide Show Software Slide Show Software and Photo Album Software Photo Album Software and Digital Photo Album Digital Photo Album Software

Photo Album Software - Image Format Add-ins

Image Format
Home
Products
- Photo Cataloging
- File Archiving
Download
Order
Support
Photo Resources
Contact
Privacy
Site Map

Add-Ins

CyPics V3.6 is an image cataloging program which has been designed to accept image format add-ins provided by COM objects.
 

 Sample Add-in

In the trivial case the sample code below provides an add-in which supports all formats supported by the Visual Basic LoadPicture command.

Option Explicit

Public Function GetImage(Filename As String, ipic As Variant, _
Album Software Photo Album Album Software Digital Photo Album params As String)
Digital Photo Set ipic = LoadPicture(Filename)
End Function

The code has to be implemented as a class module with the function name "GetImage" fixed. It is added to CyPics using the add in manager where you specify the image formats it supports and the [Project Name].[COM Module Name], for example: ImageReader.Reader 

COM Object Calling Sequence

CyPics configuration allows for the specification of the image file extensions to be processed by an add-in, the COM object name (project.module) and an optional text parameter string. 

The filename will have been validated for being available and may be provided in drive letter or UNC notation.

The image may be returned as a Visual Basic Picture object, a DIB or simply placed on the clipboard.

The sample calling sequence is:

Dim objCom As Object
Dim objName As String
Dim filename As String
Dim iPic As Variant
Dim objParameters As String

Set objCom = CreateObject(objName)
On Error GoTo COMErrHandler
GetImageFromFile = objCom.GetImage(filename, iPic, objParameters)
On Error GoTo StdErrHandler

' handle multiple format returns
If GetImageFromFile = 0 Then
Album Software' VB Picture
Album Software If TypeName(iPic) = "Picture" Then
Digital Photo Album myLead.SetPicture iPic
Digital Photo Album ElseIf TypeName(iPic) = "Long" Then
Image FormatDigital Photo' DIB Pointer
Photo AlbumDigital Photo myLead.SetDIB iPic
Else
Image FormatPhoto Album' image on clipboard 
Photo AlbumPhoto Album If myLead.Paste(PASTE_ISREADY) = 0 Then
Photo AlbumDigital PhotoPhoto Album GetImageFromFile = 1024
Image FormatDigital Photo Album Else
Digital PhotoDigital Photo AlbumImage Format myLead.Paste 0
Digital Photo AlbumImage Format End If
Digital Photo End If
End If
Set objCom = Nothing

We can provide a test program if required.

Contacts

Go to our contacts page if you need to talk to us.

Index

Quick Access :


Digital Photo Album

Home, Products, Download, Order, Support, Resources, Contact, About CyWarp

Please see our Privacy Policy
Send feedback on this web page to Webmaster@CyWarp.

Copyright © 2000 - CyWarp (Digital Photo Album Software & Slide Show Program). All rights reserved.

Album Software
Google