Visual Basic, .NET, ASP, VBScript
 

   
   
     

Форум - .NET

Страница: 1 |

 

  Вопрос: Прозрачная картика ??? Добавлено: 21.04.05 03:28  

Автор вопроса:  KOKA
Друзья, помогите ...
В Visual Basic 6.0 вставляя прозрачную GIF картинку в элемент

управления Image, получали изображение с прозрачным фоном картинки и

прозрачным фоном эл. управления.
Как осуществить такое на Visual Basic .NET 2003, ну например с

элементом PictureBox ?
Я игрался с Web-палитрой и цветом Transparent свойства

PictureBox.BackColor но что-то не получается. Может есть какая-то

функция, ааа ?

Ответить

  Ответы Всего ответов: 1  

Номер ответа: 1
Автор ответа:
 freeloader



ICQ: 50804884 

Вопросов: 72
Ответов: 642
 Web-сайт: freeloader.folder-pro.net
 Профиль | | #1
Добавлено: 21.04.05 16:00
transparent images

Call this member function to display bitmaps that have transparent or semitransparent pixels.

BOOL AlphaBlend(
   int xDest,
   int yDest,
   int nDestWidth,
   int nDestHeight,
   CDC* pSrcDC,
   int xSrc,
   int ySrc,
   int nSrcWidth,
   int nSrcHeight,
   BLENDFUNCTION blend
);
Parameters
xDest
Specifies the x-coordinate, in logical units, of the upper-left corner of the destination rectangle.
yDest
Specifies the y-coordinate, in logical units, of the upper-left corner of the destination rectangle.
nDestWidth
Specifies the width, in logical units, of the destination rectangle.
nDestHeight
Specifies the height, in logical units, of the destination rectangle.
pSrcDC
A pointer to the source device context.
xSrc
Specifies the x-coordinate, in logical units, of the upper-left corner of the source rectangle.
ySrc
Specifies the y-coordinate, in logical units, of the upper-left corner of the source rectangle.
nSrcWidth
Specifies the width, in logical units, of the source rectangle.
nSrcHeight
Specifies the height, in logical units, of the source rectangle.
blend
Specifies a BLENDFUNCTION structure.
Return Value
TRUE if successful; otherwise FALSE.

Remarks
See AlphaBlend in the Platform SDK for more information.

See Also
CDC Overview | Class Members | Hierarchy Chart | EMRALPHABLEND



--------------------------------------------------------------------------------

Send feedback on this topic to Microsoft

© Microsoft Corporation. All rights reserved.

Ответить

Страница: 1 |

Поиск по форуму



© Copyright 2002-2011 VBNet.RU | Пишите нам