Search:

Type: Posts; User: jagi

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    6,149

    Yes it's posible... case WM_DRAWITEM:...

    Yes it's posible...



    case WM_DRAWITEM:
    pdis = (LPDRAWITEMSTRUCT) lParam;

    switch (pdis->CtlID)
    {
    case CONTROLID:
  2. Thread: TransparentBlt

    by jagi
    Replies
    2
    Views
    1,990

    Try to use HWND as argument of function and then...

    Try to use HWND as argument of function and then take HDC from HWND...
  3. Replies
    2
    Views
    4,065

    I know that but isn't good. I must do it myself

    I know that but isn't good. I must do it myself
  4. Replies
    2
    Views
    4,065

    [C++/WinAPI] Resizing image

    Hi. I'm trying to write function to resizing images. Below is function which do that but only in x axis and scale = 50%, 25%, 12,5% etc. I need function resizing image in x and y axis with any scale....
  5. [C++/WinAPI] Checking number of allocated memory

    Hi. How can I check number of memory, allocated by malloc() function ?
  6. Replies
    4
    Views
    1,268

    If you want to make winXP icons use photoshop...

    If you want to make winXP icons use photoshop with trial plug-in "iconbuilderxp"...

    iconbuilderxp-110.zip
  7. Replies
    0
    Views
    4,622

    [C++/WinAPI] Changing bitmap contrast

    It's a code of function changing kontrast of bitmap. But it don't work that I want. Maybe someone saw how loooks changing contrast in PhotoShop. I want to reach the same effect... In attaching image...
  8. Replies
    19
    Views
    5,699

    yes yes it works :D at last :D thanks for help my...

    yes yes it works :D at last :D thanks for help my master :D
  9. Replies
    19
    Views
    5,699

    I thought that it works, but it works only for...

    I thought that it works, but it works only for mask with RGB(128,128,128).

    Example

    Bitmap RGB(185,185,185)
    Mask RGB(0,0,0)
    Background RGB(100,0,0)

    RED (185 + 100) * (0 / 256) = 285 * 0 = 0...
  10. Replies
    19
    Views
    5,699

    it works :) thanks, I was looking for it, I...

    it works :) thanks, I was looking for it, I didn't know that is so easy :) Big thanks my master :) ;)
  11. Replies
    19
    Views
    5,699

    but what if 12x12 pixel in the mask is gray ? it...

    but what if 12x12 pixel in the mask is gray ? it doesn't work...
  12. Replies
    19
    Views
    5,699

    first = bitmap second = mask third = background...

    first = bitmap
    second = mask
    third = background
    fourth = last effect

    I want to display bitmap using mask on every background

    I'm attaching example
    I tried to use ROP code but it doesn't...
  13. Replies
    19
    Views
    5,699

    I have one more question. I want to display...

    I have one more question. I want to display bitmaps using grayscale mask.
    I have 3 bitmaps.
    First - created by epfTakeScreenShot
    Second - mask bitmap from resource
    Third - bitmap to display with...
  14. Replies
    19
    Views
    5,699

    You have right... I'll do that :) ...

    You have right... I'll do that :)

    epfTakeScreenShot Function works correctly, I tested it and display screens as DDB, but epfConvertDDBtoDIB don't work...
  15. Replies
    19
    Views
    5,699

    // epfTakeScreenShot.cpp #include ...

    // epfTakeScreenShot.cpp

    #include <windows.h>
    #include "engine.h"

    HBITMAP epfTakeScreenShot(HWND hwnd, int xPos, int yPos, int cx, int cy)
    {
    HDC hdc, hdcMem;

    HBITMAP hBitmap;
  16. Replies
    19
    Views
    5,699

    Ok. I know what was wrong, before send pointer as...

    Ok. I know what was wrong, before send pointer as function's parameter I must book memory...


    BITMAPINFO * pbmiBk = new BITMAPINFO;
    BYTE * pBitsBk = new BYTE[size];

    But something is still...
  17. Replies
    19
    Views
    5,699

    Why? BYTE * pBitsBk; // wrong ? BYTE *...

    Why?



    BYTE * pBitsBk; // wrong ?
    BYTE * pBitsBk = 0; // corect ?



    It doesn't load DDB. I use it to Load DIB bitmap - API doesn't include it.
  18. Replies
    19
    Views
    5,699

    #include #include "engine.h" BOOL...

    #include <windows.h>
    #include "engine.h"

    BOOL epfShowBitmap(HDC hdc, int xPos, int yPos,BITMAPFILEHEADER * pbmfh, BITMAPFILEHEADER * pbmfhMask, int iFlag)
    {
    static BITMAPINFO * pbmi, *...
  19. Replies
    19
    Views
    5,699

    [VC++/WinAPI] DDB to DIB

    Hello. (sorry for mistakes) I'm taking part of screen and saving it as DDB. And now I'm trying to convert DDB to DIB using GetDIBits function



    int GetDIBits(
    HDC hdc, // handle to...
  20. Replies
    2
    Views
    7,553

    thanks

    thanks
  21. Replies
    2
    Views
    7,553

    [VC++/WinAPI] HWND from HDC, how ?

    Hello. I have a problem, I don't know how to take window's handle having device's context... If you don't understood me, I'll try explaine it more precisely...
Results 1 to 21 of 22