Nanashi-soft○プログラマ専用○Photoshopプラグイン開発○
if (depth == 32)
*fPixel = fColor;
else if (depth == 16)
*bigPixel = bigColor;
else {
if(gParams->disposition == 0){
//全部ディザリング
if(0xff < (int)*pixel + (int)amari[color]){
*pixel = 0xff;
}else if((int)*pixel + (int)amari[color] < 0){
*pixel = 0x00;
}else{
*pixel = *pixel + amari[color];
}
}else{
//閾値ディザリング
uint8 savecolor=*pixel;
if(-gParams->percent < (int)*pixel - (int)oldcolor[color] && (int)*pixel - (int)oldcolor[color] < gParams->percent){
//閾値内の時は余りを足さない
}else{
if(0xff < (int)*pixel + (int)amari[color]){
*pixel = 0xff;
}else if((int)*pixel + (int)amari[color] < 0){
*pixel = 0x00;
}else{
*pixel = *pixel + amari[color];
}
}
oldcolor[color]=savecolor;
}
if(*pixel & 0x08){
amari[color] = -0x0f + (*pixel & 0x0f);
*pixel = *pixel | 0x0f;
}else{
amari[color] = *pixel & 0x0f;
*pixel = *pixel & 0xf0;
}
}
こんな感じでしょうか('-'*) RTEXT "&Amount %:",4,60,6,38,8,NOT WS_GROUP
RTEXT "Disposition:",6,61,24,36,8,NOT WS_GROUP
RADIOBUTTON "Cl&ear",7,100,24,35,8,BS_NOTIFY | WS_GROUP | WS_TABSTOP
RADIOBUTTON "Coo&l",8,100,34,35,8,BS_NOTIFY | WS_GROUP | WS_TABSTOP
RADIOBUTTON "&Hot",9,100,44,35,8,BS_NOTIFY | WS_GROUP | WS_TABSTOP
RADIOBUTTON "&Sick",10,100,55,35,8,BS_NOTIFY | WS_GROUP | WS_TABSTOP
↓書き換える RTEXT "Sikii:",4,60,6,38,8,NOT WS_GROUP
RTEXT "Dithering:",6,61,24,36,8,NOT WS_GROUP
RADIOBUTTON "All",7,100,24,35,8,BS_NOTIFY | WS_GROUP | WS_TABSTOP
RADIOBUTTON "Use sikii",8,100,34,35,8,BS_NOTIFY | WS_GROUP | WS_TABSTOP
余計なRADIOBUTTONを削除すると,表示されなくなります