News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Recent posts

#91
The Campus / Re: Help, creating a Malloc fu...
Last post by RHL - May 21, 2012, 01:37:28 AM
thanks - but I want to do it with these functions :P

well...my problem is I do not understand how it should do... in rtlcreateheap say:
RtlCreateHeap returns a handle to be used in accessing the created heap.

how do it should do? I do not understand
#92
The Campus / Re: Help, creating a Malloc fu...
Last post by Gunner - May 21, 2012, 01:35:39 AM
#93
The Campus / Re: bmp viewer wish your optim...
Last post by xiahan - May 21, 2012, 01:25:23 AM
Google says: (http://en.wikipedia.org/wiki/Alpha_compositing)

outRGB = srcRGBsrcA + dstRGB(1-srcA)

The value of alpha in the color code ranges from 0.0 to 1.0

the same as mine

[Image'Color*x%+Background'Color*(100-x)%]  x = alpha value

besides , any optimizition to my code
#94
The Campus / Help, creating a Malloc functi...
Last post by RHL - May 21, 2012, 01:21:27 AM
Hello guys, fine I'm trying create a Malloc function for ASM, I'm seeing the MSDN - but I have doubts... I wonder if I can give recommendations and help... I'm trying with RtlCreateHeap,RtlAllocateHeap,RtlFreeHeap... but I did see that there NtGetProcessHeap...

also - I have seen that RtlCreateHeap, return a pointer ( which must be freed with RtlFreeHeap ) but I think it is different from what  RtlAllocateHeap function return...
then I would need two pointer ( one for RtlCreareHeap - one for RtlAllocateHeap ).

I want to just simulate the Malloc, free function... any recommendations, thanks
#95
The Campus / Re: bmp viewer wish your optim...
Last post by dedndave - May 21, 2012, 12:49:01 AM
yes - google for "opacity"
#96
The Campus / Re: bmp viewer wish your optim...
Last post by xiahan - May 21, 2012, 12:39:04 AM
Quote from: dedndave on May 21, 2012, 12:25:36 AM




the purple area can be made transparent to create icons

here is some example code...
http://www.masm32.com/board/index.php?topic=18800.0

there is one post in that thread where i use TransparentBlt
GdiTransparentBlt might be a better choice
and another where i create a mask to achieve the same thing

finish your example, the purple is replaced by the background color while the main image doesn't

change to let it look merged into the background, just cool !

but my code is to do what the Alpha channal does, make the image entirely looked transparent
#97
The Campus / Re: bmp viewer wish your optim...
Last post by xiahan - May 21, 2012, 12:27:35 AM
yah,  maybe i used the wrong word to

drive you mad , lol
#98
The Campus / Re: bmp viewer wish your optim...
Last post by dedndave - May 21, 2012, 12:25:36 AM
in this image...



the purple area can be made transparent to create icons

here is some example code...
http://www.masm32.com/board/index.php?topic=18800.0

there is one post in that thread where i use TransparentBlt
GdiTransparentBlt might be a better choice
and another where i create a mask to achieve the same thing
#99
The Campus / Re: bmp viewer wish your optim...
Last post by xiahan - May 21, 2012, 12:20:02 AM
oh my god!!!! what are you thinking about?

i just want to know in which situation will

the color value of the pixel in the upper left corner of the image to identify the transparent color

be functional , your 'transparent' is not the same with mine

so tell me which kind of picture can apply the method dave offers work?
#100
The Campus / Re: bmp viewer wish your optim...
Last post by dedndave - May 21, 2012, 12:18:30 AM
lol
yah - semi-retired Electronics Engineer
married with a daughter

i have written software professionally in certain specialized cases - back in the DOS days and before
it's mainly a hobby