Message from discussion
Problem with RGBA image on AutoComplete ListBox
Received: by 10.224.42.68 with SMTP id r4mr2385191qae.4.1348062537795;
Wed, 19 Sep 2012 06:48:57 -0700 (PDT)
X-BeenThere: scintilla-interest@googlegroups.com
Received: by 10.229.178.19 with SMTP id bk19ls1431395qcb.0.gmail; Wed, 19 Sep
2012 06:48:57 -0700 (PDT)
Received: by 10.224.27.14 with SMTP id g14mr2301488qac.1.1348062536948;
Wed, 19 Sep 2012 06:48:56 -0700 (PDT)
Received: by 10.224.28.72 with SMTP id l8msqac;
Wed, 19 Sep 2012 06:43:15 -0700 (PDT)
Received: by 10.52.28.83 with SMTP id z19mr576907vdg.20.1348062195666;
Wed, 19 Sep 2012 06:43:15 -0700 (PDT)
Date: Wed, 19 Sep 2012 06:43:15 -0700 (PDT)
From: Vadym Zelenyuk <imze...@yahoo.com>
To: scintilla-interest@googlegroups.com
Message-Id: <89717638-5b0a-4084-a164-b7d469eac007@googlegroups.com>
Subject: Problem with RGBA image on AutoComplete ListBox
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_1985_24113367.1348062195371"
------=_Part_1985_24113367.1348062195371
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hello!
I'm using ScintillaNET in my .NET project. It doesn't support SCI_REGISTERR=
GBAIMAGE function, but provides interface to send messages to native Scinti=
lla. But all my attempts were failed. For example, the simplest one:
scintilla.NativeInterface.SendMessageDirect( SCI_RGBAIMAGESETWIDTH, i=
mg.Width );
scintilla.NativeInterface.SendMessageDirect( SCI_RGBAIMAGESETHEIGHT, =
img.Height );
StringBuilder sb =3D new StringBuilder();
for ( int x =3D 0; x < img.Width; x++ )
for ( int y =3D 0; y < img.Height; y++ )
{
sb.Append( (char)0 );
sb.Append( (char)0 );
sb.Append( (char)0 );
sb.Append( (char)255 );
}
scintilla.NativeInterface.SendMessageDirect( SCI_REGISTERRGBAIMAGE, 0=
, sb.ToString() );
For image 16x16 I can see chain of five pixels: black (60,60,60), three whi=
te (255,255,255) and blue (64,64,210) instead of square. I tried different =
versions (from 3.0.4 to 3.2.2) but result is the same. Could somebody tell =
me what I=E2=80=99m doing wrong?
------=_Part_1985_24113367.1348062195371--