Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. vitaloverdose

    Pixel color : long to ARGB

    Hi im using Microsoft's WIA to gain access to the ARGB of PNG images. The WIA has an ARGB filter that breaks the image up into long values for the color of each pixel. How can i then break this number down into its separate alpha,red,green and blue values? thanks.
  2. vitaloverdose

    WIA / PNG

    I got it working by loading a 16x16 blank trans png into memory when the project opens up.I can then copy and resize this whenever i need a new blank trans image. I think this would be quicker than generating a new pic each time anyway. '*MainForm Private Sub Form_Load() Set ImgBlank =...
  3. vitaloverdose

    WIA / PNG

    My mistake dilettante you were right on the button with that one... the blank pic is not being created as transparent. I cant see way to create a blank trans image at the moment though. As a last resort i could always have one pre-loaded into my app and use that when i need to. :)
  4. vitaloverdose

    WIA / PNG

    Would this have anything to do with 'Premultiplied alpha' ?
  5. vitaloverdose

    WIA / PNG

    Would the Alpha layer have anything to do with V(0) because the sample code from MS starts the for loop at V(1)? Set v = Img.ARGBData For i = 1 To v.Count Step 21 v(i) = &HFFFF00FF Next
  6. vitaloverdose

    WIA / PNG

    On further testing it seems that assigning the image.ARGBData to a vector doesnt alter the color of transparent pixels on its own. I tried the sample from Microsoft on a png and it saves the trans pixels correctly. Dim Img 'As ImageFile Dim IP 'As ImageProcess Dim v 'As Vector Dim i 'As Long...
  7. vitaloverdose

    WIA / PNG

    Hi dilettante , yes the blank image is being created correctly ,i saved it off to check. Ive run some tests on the code: When reading from the array: Trans = 0 Black = -16777216 red = -49088 When writing to the array: Trans should be -1 Just to see what happens i added a check for the...
  8. vitaloverdose

    WIA / PNG

    Hi there , a while ago i wrote some image manipulation functions using microsofts WIA mainly because it allows you to easily load png images and modify them on a perpixel basis. So i then wrote a GUI (the program was a button editor) but when ive come to use the functions in the main program im...
  9. vitaloverdose

    Resizing a massive picture

    - Im making a 3D animation of the earth the picture is 43200 x 21600. - Bcause i cant be the only person who has needed to resize a pic to large to open + i have seen programs before that were designed to handle large pics before. - i want to resize the dimentions of the picture.
  10. vitaloverdose

    Resizing a massive picture

    Hi, ive got a massive picture of the earth that i need to scale down but its to big to open (ive got 2gb ram). Does anyone know how i could manage to do this? thnks.
  11. vitaloverdose

    .BMP instead of .PSP?

    Hi there, is there any way to make the deafult file type for saving to .BMP instead of .PSP? If not.. is there a way to save every open picture in paintshop as bmp's as one action instead of having to exit the program and then change each save option on evey picture to bmp one at a time>? thanks..
  12. vitaloverdose

    Tag file associations

    Hi there, is there any way to make the deafult file type for saving to .BMP instead of .PSP? If not.. is there a way to save every open picture in paintshop as bmp's as one action instead of having to exit the program and then change each save option on evey picture to bmp one at a time>? thanks..
  13. vitaloverdose

    Object Masks

    Hi there, ive been making little anims with bryce for some time now as the obkect mask allows my to cut out what ever im reandering very cleanly. But for anything over a few seconds in length and all the cutting and pasting in photoshop is driving me mad. Is there any program that can handle...

Part and Inventory Search

Back
Top