/dports/print/py-reportlab/reportlab-3.5.68/src/reportlab/pdfgen/ |
H A D | pdfimages.py | 55 imgwidth, imgheight = info[0], info[1] 72 return (imagedata, imgwidth, imgheight) 118 imgwidth, imgheight = myimage.size 134 return (imagedata, imgwidth, imgheight) 143 imgheight = int(words[3]) 144 return imagedata, imgwidth, imgheight 154 imagedata, imgwidth, imgheight = self.jpg_imagedata() 163 imagedata, imgwidth, imgheight = self.JAVA_imagedata() 165 imagedata, imgwidth, imgheight = self.PIL_imagedata() 168 self.imgheight = imgheight [all …]
|
/dports/graphics/aview/aview-1.3.0/ |
H A D | image.c | 6 int imgwidth, imgheight; variable 55 if (fscanf(file, "%i %i", &imgwidth, &imgheight) != 2) { in load_image() 72 if ((imgdata = malloc(imgwidth * imgheight)) == NULL) { in load_image() 79 for (i = 0; i < imgwidth * imgheight; i++) in load_image() 84 for (i = 0; i < imgwidth * imgheight; i++) in load_image() 88 for(i=0;i<imgwidth*imgheight;) in load_image() 91 for(n=128;n&&i<imgwidth*imgheight;n>>=1,i++) in load_image() 96 for(i=0;i<imgwidth*imgheight;i++) in load_image() 106 fread(imgdata, 1, imgwidth * imgheight, file); in load_image() 108 for (i = 0; i < imgwidth * imgheight; i++) in load_image()
|
H A D | ui.c | 194 y2 = imgheight; in main_loop() 195 if (imgwidth * xmul > imgheight) in main_loop() 198 x2 = imgheight * ymul; in main_loop() 201 y1 = (imgheight - y2) / 2; in main_loop() 223 y2 = imgheight; in main_loop() 224 if (imgwidth * xmul > imgheight) in main_loop() 227 x2 = imgheight * ymul; in main_loop() 273 if (y2 < imgheight - 1) { in main_loop() 283 if (y2 < imgheight - step) { in main_loop() 287 y1 = imgheight - y2 + y1; in main_loop() [all …]
|
H A D | shrink.c | 17 if (x < 0 || x + xstep > imgwidth || y < 0 || y + ystep > imgheight) in getval() 95 if(x2<0||x1>=imgwidth||y2<0||y1>=imgheight) { in shrink() 100 if(x1<0||y1<0||x2>=imgwidth||y2>=imgheight) in shrink() 109 if(y2>=imgheight) { in shrink() 110 yy2=(imgheight-1-y1)*ystep; in shrink() 111 y2=imgheight-1; in shrink()
|
/dports/emulators/tilem/tilem-2.0/emu/ |
H A D | grayimage.c | 214 for (i = 0; i < imgheight; i++) { in tilem_draw_lcd_image_indexed() 230 buffer, imgwidth, imgheight, rowstride); in tilem_draw_lcd_image_indexed() 232 for (i = 0; i < imgwidth * imgheight; i++) in tilem_draw_lcd_image_indexed() 239 ibuf, imgwidth, imgheight, imgwidth); in tilem_draw_lcd_image_indexed() 241 for (i = 0; i < imgheight; i++) { in tilem_draw_lcd_image_indexed() 268 for (i = 0; i < imgheight; i++) { in tilem_draw_lcd_image_rgb() 289 bbuf = GETSCALEBUF(byte, imgwidth, imgheight); in tilem_draw_lcd_image_rgb() 292 bbuf, imgwidth, imgheight, imgwidth); in tilem_draw_lcd_image_rgb() 294 for (i = 0; i < imgheight; i++) { in tilem_draw_lcd_image_rgb() 310 ibuf, imgwidth, imgheight, imgwidth); in tilem_draw_lcd_image_rgb() [all …]
|
/dports/misc/bb/bb-1.3.0/ |
H A D | image.c | 78 int imgheight = image->height; in scale() local 98 if (y2 >= imgheight) { in scale() 99 yy2 = (imgheight - 1 - y1) * ystep; in scale() 100 y2 = imgheight - 1; in scale() 128 int imgheight = image->height; in scale2() local 145 if (y2 >= imgheight) { in scale2() 146 yy2 = (imgheight - 1 - y1) * ystep; in scale2() 147 y2 = imgheight - 1; in scale2() 187 int imgheight = image->height; in dispimg() local 192 y2 = imgheight; in dispimg() [all …]
|
/dports/multimedia/aegisub/aegisub-3.2.2/src/ |
H A D | audio_renderer_spectrum.cpp | 235 int imgheight = img.GetHeight(); in Render() local 251 unsigned char *px = imgdata + (imgheight-1) * stride + (ax - start) * 3; in Render() 254 if (imgheight > 1<<derivation_size) in Render() 257 for (int y = 0; y < imgheight; ++y) in Render() 260 assert(px < imgdata + imgheight*stride); in Render() 261 float ideal = (float)(y+1.)/imgheight * (maxband-minband) + minband; in Render() 273 for (int y = 0; y < imgheight; ++y) in Render() 276 assert(px < imgdata + imgheight*stride); in Render() 277 int sample1 = std::max(0, maxband * y/imgheight + minband); in Render() 278 int sample2 = std::min((1<<derivation_size)-1, maxband * (y+1)/imgheight + minband); in Render()
|
/dports/games/libretro-snes9x/snes9x-73aa348/ |
H A D | screenshot.cpp | 25 int imgwidth, imgheight; in S9xDoScreenshot() local 66 imgheight = height; in S9xDoScreenshot() 71 imgheight = height << 1; in S9xDoScreenshot() 79 imgheight = height << 1; in S9xDoScreenshot() 84 …png_set_IHDR(png_ptr, info_ptr, imgwidth, imgheight, 8, PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE, PN… in S9xDoScreenshot() 122 if (imgheight != height) in S9xDoScreenshot()
|
/dports/emulators/snes9x-gtk/snes9x-1.54.1/ |
H A D | screenshot.cpp | 201 int imgwidth, imgheight; in S9xDoScreenshot() local 242 imgheight = height; in S9xDoScreenshot() 247 imgheight = height << 1; in S9xDoScreenshot() 255 imgheight = height << 1; in S9xDoScreenshot() 260 …png_set_IHDR(png_ptr, info_ptr, imgwidth, imgheight, 8, PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE, PN… in S9xDoScreenshot() 298 if (imgheight != height) in S9xDoScreenshot()
|
/dports/www/mybb/mybb-mybb_1829/inc/ |
H A D | functions_image.php | 33 $imgheight = $imgdesc[1]; 39 if($imgwidth == 0 || $imgheight == 0) 44 if(($imgwidth >= $maxwidth) || ($imgheight >= $maxheight)) 46 check_thumbnail_memory($imgwidth, $imgheight, $imgtype, $imgbits, $imgchan); 79 $scale = scale_image($imgwidth, $imgheight, $maxwidth, $maxheight); 115 @imagecopyresampled($thumbim, $im, 0, 0, 0, 0, $thumbwidth, $thumbheight, $imgwidth, $imgheight); 119 @imagecopyresized($thumbim, $im, 0, 0, 0, 0, $thumbwidth, $thumbheight, $imgwidth, $imgheight);
|
/dports/graphics/opencolorio/OpenColorIO-1.1.1/src/apps/ocioconvert/ |
H A D | main.cpp | 117 int imgheight = 0; in main() local 146 imgheight = spec.height; in main() 149 img.resize(imgwidth*imgheight*components); in main() 150 memset(&img[0], 0, imgwidth*imgheight*components*sizeof(float)); in main() 178 imgheight = spec.full_height; in main() 180 std::cerr << "x" << imgheight << std::endl; in main() 189 croppedimg.resize(imgwidth*imgheight*kchannels.size()); in main() 202 current_pixel_y < imgheight && in main() 219 spec.height = imgheight; in main() 243 OCIO::PackedImageDesc imageDesc(&img[0], imgwidth, imgheight, components); in main()
|
/dports/graphics/opencolorio-tools/OpenColorIO-1.1.1/src/apps/ocioconvert/ |
H A D | main.cpp | 116 int imgheight = 0; in main() local 145 imgheight = spec.height; in main() 148 img.resize(imgwidth*imgheight*components); in main() 149 memset(&img[0], 0, imgwidth*imgheight*components*sizeof(float)); in main() 177 imgheight = spec.full_height; in main() 179 std::cerr << "x" << imgheight << std::endl; in main() 188 croppedimg.resize(imgwidth*imgheight*kchannels.size()); in main() 201 current_pixel_y < imgheight && in main() 218 spec.height = imgheight; in main() 242 OCIO::PackedImageDesc imageDesc(&img[0], imgwidth, imgheight, components); in main()
|
/dports/graphics/py-opencolorio/OpenColorIO-1.1.1/src/apps/ocioconvert/ |
H A D | main.cpp | 116 int imgheight = 0; in main() local 145 imgheight = spec.height; in main() 148 img.resize(imgwidth*imgheight*components); in main() 149 memset(&img[0], 0, imgwidth*imgheight*components*sizeof(float)); in main() 177 imgheight = spec.full_height; in main() 179 std::cerr << "x" << imgheight << std::endl; in main() 188 croppedimg.resize(imgwidth*imgheight*kchannels.size()); in main() 201 current_pixel_y < imgheight && in main() 218 spec.height = imgheight; in main() 242 OCIO::PackedImageDesc imageDesc(&img[0], imgwidth, imgheight, components); in main()
|
/dports/x11-toolkits/wmapp/wmapp-0.0.4.3/ |
H A D | wmimage.cc | 58 const int imgheight = icon() ? icon()->attr.height : 0; in real_display() local 65 else if (imgwidth > b_width() || imgheight > b_height()) { in real_display() 71 else if (imgwidth < b_width() || imgheight < b_height()) { in real_display() 78 WMApp::Xw.copy_rectangle(*icon(), temp, 0, 0, imgwidth, imgheight, in real_display() 79 (b_width() - imgwidth) / 2, (b_height() - imgheight) / 2); in real_display()
|
/dports/games/flightgear/flightgear-2020.3.11/utils/Modeller/ |
H A D | uv_pack.py | 74 imgwidth, imgheight = image.getSize() 75 if imgwidth != imgheight: 77 gap = (float(GAP) / imgwidth, float(GAP) / imgheight) 78 margin = (float(MARGIN) / imgwidth - gap[0] * 0.5, float(MARGIN) / imgheight - gap[1] * 0.5) 83 y0 *= imgheight 84 y1 *= imgheight
|
/dports/www/moodle311/moodle/iplookup/ |
H A D | index.php | 83 $imgheight = 310; variable 88 $dy = round((($info['latitude'] + 90) * ($imgheight / 180))); 90 echo '<div id="map" style="width:'.($imgwidth+$dotwidth).'px; height:'.$imgheight.'px;">'; 91 echo '<img src="earth.jpeg" style="width:'.$imgwidth.'px; height:'.$imgheight.'px" alt="" />';
|
/dports/www/moodle310/moodle/iplookup/ |
H A D | index.php | 83 $imgheight = 310; variable 88 $dy = round((($info['latitude'] + 90) * ($imgheight / 180))); 90 echo '<div id="map" style="width:'.($imgwidth+$dotwidth).'px; height:'.$imgheight.'px;">'; 91 echo '<img src="earth.jpeg" style="width:'.$imgwidth.'px; height:'.$imgheight.'px" alt="" />';
|
/dports/www/moodle39/moodle/iplookup/ |
H A D | index.php | 83 $imgheight = 310; variable 88 $dy = round((($info['latitude'] + 90) * ($imgheight / 180))); 90 echo '<div id="map" style="width:'.($imgwidth+$dotwidth).'px; height:'.$imgheight.'px;">'; 91 echo '<img src="earth.jpeg" style="width:'.$imgwidth.'px; height:'.$imgheight.'px" alt="" />';
|
/dports/graphics/lensfun/lensfun-0.3.95/libs/lensfun/ |
H A D | modifier.cpp | 132 lfModifier::lfModifier (float imgcrop, int imgwidth, int imgheight, in lfModifier() argument 140 Height = double (imgheight >= 2 ? imgheight - 1 : 1); in lfModifier() 202 float imgcrop, int imgwidth, int imgheight, lfPixelFormat pixel_format, bool reverse) in lf_modifier_create() argument 204 return new lfModifier(imgcrop, imgwidth, imgheight, pixel_format, reverse); in lf_modifier_create()
|
/dports/net-mgmt/nagvis/nagvis-1.9.29/share/userfiles/gadgets/ |
H A D | std_bar.php | 107 $imgheight = 50 * $ratio; variable 130 $sect1 = intval($imgheight / 5); 131 $sect2 = intval($imgheight / 2); 132 $sect3 = intval($imgheight / 5)*3; 156 $img=imagecreatetruecolor($imgwidth*$cols, $imgheight*$rows); 186 $offY = floor($offG / $cols) * $imgheight; // calculate upper y-axis position 188 $maxY = $imgheight-5;
|
H A D | std_speedometer2.php | 98 $imgheight = 110 * $ratio; variable 151 $img=imagecreatetruecolor($imgwidth*$cols, $imgheight*$rows); 182 $offY = floor($offG / $cols) * $imgheight; // calculate upper y-axis position 184 $centery = $offY + $imgheight - 20; // center of graph, y-axis 309 imagestring($img, 1, $offX, $imgheight+$offY-10, $label.': '.$value, $oBlack);
|
/dports/print/py-reportlab/reportlab-3.5.68/src/reportlab/pdfbase/ |
H A D | pdfutils.py | 37 imgwidth, imgheight = img.getSize() 44 append('/W %s /H %s /BPC 8 /CS /%s /F [/A85 /Fl]' % (imgwidth, imgheight,_mode2cs[img.mode])) 47 assert len(raw) == imgwidth * imgheight*_mode2bpp[img.mode], "Wrong amount of data for image" 64 imgwidth, imgheight = img.getSize() 71 append('/W %s /H %s /BPC 8 /CS /%s /F [/Fl]' % (imgwidth, imgheight,_mode2cs[img.mode])) 74 assert len(raw) == imgwidth * imgheight*_mode2bpp[img.mode], "Wrong amount of data for image"
|
/dports/graphics/gimp-lensfun-plugin/GIMP-Lensfun-c5eaf97/src/ |
H A D | gimplensfun.cpp | 882 gint x1, y1, x2, y2, imgwidth, imgheight; in process_image() local 903 imgheight = y2-y1; in process_image() 911 imgwidth, imgheight, in process_image() 916 imgwidth, imgheight, in process_image() 920 ImgBuffer = g_new (guchar, channels * (imgwidth+1) * (imgheight+1)); in process_image() 921 ImgBufferOut = g_new (guchar, channels * (imgwidth+1) * (imgheight+1)); in process_image() 925 gimp_pixel_rgn_get_rect (&rgn_in, ImgBuffer, x1, y1, imgwidth, imgheight); in process_image() 964 for (int i = 0; i < imgheight; i++) in process_image() 1007 … ns, %d pixel -> %llu ns/pixel\n", time_diff, imgwidth*imgheight, time_diff / (imgwidth*imgheight)… in process_image() 1012 gimp_pixel_rgn_set_rect (&rgn_out, ImgBufferOut, x1, y1, imgwidth, imgheight); in process_image() [all …]
|
/dports/german/BBBike/BBBike-3.18/cgi/ |
H A D | mapserver_setcoord.cgi | 22 my $imgheight = 550; 24 ($imgwidth, $imgheight) = split /\s+/, param("imgsize"); 42 $imgext[3] - $img_y/$imgheight*$mapheight));
|
/dports/astro/marble/marble-21.12.3/src/lib/marble/ |
H A D | TextureColorizer.cpp | 229 const int imgheight = origimg->height(); in colorize() local 232 const int imgry = imgheight / 2; in colorize() 242 int yBottom = imgheight; in colorize() 251 yTop = qBound(qreal(0.0), realYTop, qreal(imgheight)); in colorize() 252 yBottom = qBound(qreal(0.0), realYBottom, qreal(imgheight)); in colorize() 290 const int yBottom = ( yTop == 0 ) ? imgheight : imgry + radius; in colorize()
|