locked
Format16bppArgb1555 Brush... RRS feed

  • Question

  • Is there a simple way to create a Brush color based on a Format16bppArgb1555 colour?

     

    Tuesday, April 5, 2011 5:22 AM

Answers

  • Hi juansta,

    I think there are some misunderstanding between the color formats and Bitmap pixel formats. Format16bppArgb1555 is used for specifying each image pixel format for Bitmap structure. Whereas the color is determined by RGB or RGBA formats. 

    Why do you want this feature? Do you mean that you want to use a bitmap as the brush content to fill specific controls? In that case,

    http://msdn.microsoft.com/en-us/library/system.windows.media.imagebrush.aspx

    You can check this document.

     

    If there's any concern, please feel free to let me know.

    Best wishes,


    Mike [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, April 7, 2011 12:03 PM