Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] How to create a pen with the width less than 1

Hi, everyone.

 

In SWT ‘s source, I can see the following code:

 

org.eclipse.swt.graphics.GC.java

 

int createGdipPen() {

        …

        int pen = Gdip.Pen_new(color, Math.max (1, width));

        …

}

 

My question is how to create a pen with the width less than 1. Does not the SWT support that?

 

Thanks

 

Bin

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

Long,Bin

SPSS Software Development (Xi'an) Co., Ltd.

Tel: 0086-029-86690106-7042

Fax: 0086-029-87607254

 


Back to the top