Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Make image from memblock creates incomplete image...

Author
Message
marlou
15
Years of Service
User Offline
Joined: 17th Jan 2009
Location:
Posted: 21st Feb 2009 11:55
I made a class that will add noise to an image. However when i try to create the image again from the memblock, It only creates part of an image(an incomplete one but of the same size). I need to add noise to the complte image. Can someone help me fix this problem?

Image before noise generation..


Image after noise generation..


main.cpp


Imagememblock.h


Imagememblock.cpp


Aside from this incomplete image creation from memblock,
How do I manipulate the alpha(transparency) of a pixel?I noticed that some image file formats have RGBA including an alpha but I only saw dbRgb that creates DWORD for RGB.

Please help me understand why im getting an impartial image and how to fix it.

When a person has nothing but a dream, can he dare to dream.
marlou
15
Years of Service
User Offline
Joined: 17th Jan 2009
Location:
Posted: 21st Feb 2009 12:55
I got the two images interchanged. The first image is the image after noise generation. Notice that it is an incomplete image.

The second image is the original image before noise generation.

Even if i just try to recreate the image from its memblock form, It still results to a creation of an incomplete image.

Sorry, I can't edit my first post and I dont know why.

When a person has nothing but a dream, can he dare to dream.
marlou
15
Years of Service
User Offline
Joined: 17th Jan 2009
Location:
Posted: 22nd Feb 2009 15:10
(bump)

I haven't fixed the problem.






The image is still shorter than the original after recreating it from the memblock.


pls help me..

When a person has nothing but a dream, can he dare to dream.

Login to post a reply

Server time is: 2024-11-25 15:48:03
Your offset time is: 2024-11-25 15:48:03