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.
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 =...
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. :)
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
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...
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...
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...
- 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.
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.
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..
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..
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.