Results 1 to 2 of 2

Thread: rotate and save image, vb to VC

  1. #1

    Thread Starter
    Addicted Member BarankinBeAMan's Avatar
    Join Date
    Aug 2002
    Location
    Reston,Va
    Posts
    164

    Angry rotate and save image, vb to VC

    How do I write this small procedure in VC++?

    Dim oPath As folder, oFso As New FileSystemObject, sImgFile As File, sTime As String


    Set oPath = oFso.GetFolder("C:\someFolderPath")


    For Each sImgFile In oPath.Files


    If sImgFile.Type = "tif file" Then

    With Me
    .ImgEdit1.Image = sImgFile.Path
    .ImgEdit1.Display
    .ImgEdit1.RotateRight
    .ImgEdit1.Save
    End With

    End If



    Next

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Look into FindFirstFile and FindNextFile. The file system object provides a much easier interface than the native windows API.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width