archive-com.com » COM » E » EFG2.COM

Total: 878

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".

  • Input file read error 36 cstrJERR FILE WRITE Output file write error out of disk space 37 cstrJERR FRACT SAMPLE NOTIMPL Fractional sampling not implemented yet 38 cstrJERR HUFF CLEN OVERFLOW Huffman code size table overflow 39 cstrJERR HUFF MISSING CODE Missing Huffman code table entry 40 cstrJERR IMAGE TOO BIG Maximum supported image dimension is u pixels 41 cstrJERR INPUT EMPTY Empty input file 42 cstrJERR INPUT EOF Premature end of input file 43 cstrJERR MISMATCHED QUANT TABLE Cannot transcode due to multiple use of quantization table d 44 cstrJERR MISSING DATA Scan script does not transmit all data 45 cstrJERR MODE CHANGE Invalid color quantization mode change 46 cstrJERR NOTIMPL Not implemented yet 47 cstrJERR NOT COMPILED Requested feature was omitted at compile time 48 cstrJERR NO BACKING STORE Backing store not supported 49 cstrJERR NO HUFF TABLE Huffman table 0x 02x was not defined 50 cstrJERR NO IMAGE JPEG datastream contains no image 51 cstrJERR NO QUANT TABLE Quantization table 0x 02x was not defined 52 cstrJERR NO SOI Not a JPEG file starts with 0x 02x 0x 02x 53 cstrJERR OUT OF MEMORY Insufficient memory case d 54 cstrJERR QUANT COMPONENTS Cannot quantize more than d color components 55 cstrJERR QUANT FEW COLORS Cannot quantize to fewer than d colors 56 cstrJERR QUANT MANY COLORS Cannot quantize to more than d colors 57 cstrJERR SOF DUPLICATE Invalid JPEG file structure two SOF markers 58 cstrJERR SOF NO SOS Invalid JPEG file structure missing SOS marker 59 cstrJERR SOF UNSUPPORTED Unsupported JPEG process SOF type 0x 02x 60 cstrJERR SOI DUPLICATE Invalid JPEG file structure two SOI markers 61 cstrJERR SOS NO SOF Invalid JPEG file structure SOS before SOF 62 cstrJERR TFILE CREATE Failed to create temporary file s 63 cstrJERR TFILE READ Read failed on temporary file 64 cstrJERR TFILE SEEK Seek failed on temporary file 65 cstrJERR TFILE WRITE Write failed on temporary file out of disk space 66 cstrJERR TOO LITTLE DATA Application transferred too few scanlines 67 cstrJERR UNKNOWN MARKER Unsupported marker type 0x 02x 68 cstrJERR VIRTUAL BUG Virtual array controller messed up 69 cstrJERR WIDTH OVERFLOW Image too wide for this implementation 70 cstrJERR XMS READ Read from XMS failed 71 cstrJERR XMS WRITE Write to XMS failed 72 cstrJMSG COPYRIGHT cstrJCOPYRIGHT 73 cstrJMSG VERSION cstrJVERSION 74 cstrJTRC 16BIT TABLES Caution quantization tables are too coarse for baseline JPEG 75 cstrJTRC ADOBE Adobe APP14 marker version d flags 0x 04x 0x 04x transform d 76 cstrJTRC APP0 Unknown APP0 marker not JFIF length u 77 cstrJTRC APP14 Unknown APP14 marker not Adobe length u 78 cstrJTRC DAC Define Arithmetic Table 0x 02x 0x 02x 79 cstrJTRC DHT Define Huffman Table 0x 02x 80 cstrJTRC DQT Define Quantization Table d precision d 81 cstrJTRC DRI Define Restart Interval u 82 cstrJTRC EMS CLOSE Freed EMS handle u 83 cstrJTRC EMS OPEN Obtained EMS handle u 84 cstrJTRC EOI End Of Image 85 cstrJTRC HUFFBITS 3d 3d 3d 3d 3d 3d 3d

    Original URL path: http://www.efg2.com/Lab/Library/Delphi/Graphics/JpegErrors.txt (2016-02-14)
    Open archived version from archive



  • USES JPEG Avoid JPEG Error 52 Verify first two bytes of JPEG are FFD8 little endian D8FF Verify last two bytes of JPEG are FFD9 little endian D9FF FUNCTION JPEGSentinelsAreOK CONST Filename TFilename BOOLEAN VAR FileStream TFileStream w1 WORD a word is always 2 bytes long w2 WORD BEGIN ASSERT SizeOf WORD 2 RESULT FileExists Filename IF RESULT THEN BEGIN FileStream TFileStream Create Filename fmOpenRead OR fmShareDenyNone TRY FileStream Seek

    Original URL path: http://www.efg2.com/Lab/Library/Delphi/Graphics/JPEGSentinels.pas.txt (2016-02-14)
    Open archived version from archive


  • Mime Version 1 0 Reply To bob villiers lineone net Newsgroups borland public delphi graphics I think you will find that colour JPegs are always 24 bit and 8 bit JPegs are B W The following code turns CHEMICAL BMP into a B W jpeg var jp TJpegImage bm TBitmap begin bm TBitmap Create try bm PixelFormat pf8bit bm LoadFromFile Chemical bmp jp TJpegImage Create try jp PixelFormat jf8bit jp

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/2000/0529b.txt (2016-02-14)
    Open archived version from archive


  • BitmapHeader BitmapImage StretchDIBits Canvas Handle DestRect Left DestRect Top Destination Origin DestRect Right DestRect Left Destination Width DestRect Bottom DestRect Top Destination Height 0 0 Source Origin Bitmap Width Bitmap Height Source Width Height BitmapImage TBitmapInfo BitmapHeader DIB RGB COLORS SRCCOPY FINALLY FreeMem BitmapHeader FreeMem BitmapImage END END PrintBitmap FUNCTION CenterText s STRING INTEGER BEGIN RESULT Printer PageWidth Printer Canvas TextWidth s DIV 2 END CenterText PROCEDURE PrintFooterTimeStamp CONST LeftMargin INTEGER VAR s STRING BEGIN Footer Printer Canvas Font Name Arial Printer Canvas Brush Color clWhite Printer Canvas Font Height MulDiv GetDeviceCaps Printer Canvas Handle LOGPIXELSY 8 72 s FormatDateTime m d yy h nn Now Printer Canvas TextOut LeftMargin Printer PageHeight Printer Canvas TextHeight X s END PrinterFooterTimeStamp Print Bitmap in landscape orientation with printed image width 80 of page procedure TForm1 ButtonPrintClick Sender TObject VAR Bitmap TBitmap iFromLeftMargin INTEGER iPrintedImageWidth INTEGER jDelta INTEGER jFromTopOfPage INTEGER jPrintedImageHeight INTEGER s STRING begin Screen Cursor crHourGlass TRY Printer Orientation poLandscape Printer BeginDoc Header Printer Canvas Font Height MulDiv GetDeviceCaps Printer Canvas Handle LOGPIXELSY 12 72 Printer Canvas Font Name Arial jDelta Printer Canvas TextHeight X jFromTopOfPage 3 jDelta s Image Title Printer Canvas TextOut CenterText s jFromTopOfPage s 5th line from

    Original URL path: http://www.efg2.com/Lab/Library/Delphi/Printing/PrintJPEGTImage.txt (2016-02-14)
    Open archived version from archive


  • this message to you would have seen my answer Using a bitmap as an intermediate e g uses Jpeg var Bmp TBitmap Jpeg TJpegImage begin Jpeg TJpegImage Create try Jpeg LoadFromFile big jpg Bmp TBitmap Create try Bmp Width Jpeg Width div 2 Bmp Height Jpeg Height div 2 Bmp Canvas StretchDraw Rect 0 0 Bmp Width Bmp Height Jpeg Jpeg Assign Bmp finally Bmp Free end Jpeg SaveToFile small

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/2000/0803a.txt (2016-02-14)
    Open archived version from archive


  • 800x600 to 1014x618 using Delphi Here is some code I use However it does NOT give a smooth resize of the image thus the resized image is not as good As stated in the other posting better to use the Bitmap Resampler code uses jpeg var Jpg TJPEGImage Bmp TBitmap procedure ResizeBMP b TBitmap NewWidth NewHeight integer var tbmp TBitmap begin tbmp TBitmap Create tbmp Width b Width tbmp Height

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/2002/0920b.txt (2016-02-14)
    Open archived version from archive


  • try jpeg1 TJpegImage Create TRY jpeg1 LoadFromFile Path2Image jpeg1 Grayscale False jpeg1 Scale jsFullSize jpeg1 PixelFormat jf24Bit jpeg1 CompressionQuality 50 jpeg1 DIBNeeded Bitmap1 Height jpeg1 Height Bitmap1 Width jpeg1 width Bitmap1 PixelFormat pf24bit bitmap1 Canvas Draw 0 0 jpeg1 convert JPEG to Bitmap FINALLY jpeg1 Free END BitMap2 TBitMap Create TRY Bitmap2 Width 700 Bitmap2 Height 469 BItmap2 Pixelformat pf24bit bitmap2 canvas CopyMode cmSrcCopy bitmap2 canvas StretchDraw bitmap2 canvas cliprect

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/2000/0920a.txt (2016-02-14)
    Open archived version from archive


  • Output file write error out of disk space cstrJERR FRACT SAMPLE NOTIMPL Fractional sampling not implemented yet cstrJERR HUFF CLEN OVERFLOW Huffman code size table overflow cstrJERR HUFF MISSING CODE Missing Huffman code table entry cstrJERR IMAGE TOO BIG Maximum supported image dimension is u pixels cstrJERR INPUT EMPTY Empty input file cstrJERR INPUT EOF Premature end of input file cstrJERR MISMATCHED QUANT TABLE Cannot transcode due to multiple use of quantization table d cstrJERR MISSING DATA Scan script does not transmit all data cstrJERR MODE CHANGE Invalid color quantization mode change cstrJERR NOTIMPL Not implemented yet cstrJERR NOT COMPILED Requested feature was omitted at compile time cstrJERR NO BACKING STORE Backing store not supported cstrJERR NO HUFF TABLE Huffman table 0x 02x was not defined cstrJERR NO IMAGE JPEG datastream contains no image cstrJERR NO QUANT TABLE Quantization table 0x 02x was not defined cstrJERR NO SOI Not a JPEG file starts with 0x 02x 0x 02x cstrJERR OUT OF MEMORY Insufficient memory case d cstrJERR QUANT COMPONENTS Cannot quantize more than d color components cstrJERR QUANT FEW COLORS Cannot quantize to fewer than d colors cstrJERR QUANT MANY COLORS Cannot quantize to more than d colors cstrJERR SOF DUPLICATE Invalid JPEG file structure two SOF markers cstrJERR SOF NO SOS Invalid JPEG file structure missing SOS marker cstrJERR SOF UNSUPPORTED Unsupported JPEG process SOF type 0x 02x cstrJERR SOI DUPLICATE Invalid JPEG file structure two SOI markers cstrJERR SOS NO SOF Invalid JPEG file structure SOS before SOF cstrJERR TFILE CREATE Failed to create temporary file s cstrJERR TFILE READ Read failed on temporary file cstrJERR TFILE SEEK Seek failed on temporary file cstrJERR TFILE WRITE Write failed on temporary file out of disk space cstrJERR TOO LITTLE DATA Application transferred too few scanlines cstrJERR UNKNOWN MARKER Unsupported marker type 0x 02x cstrJERR VIRTUAL BUG Virtual array controller messed up cstrJERR WIDTH OVERFLOW Image too wide for this implementation cstrJERR XMS READ Read from XMS failed cstrJERR XMS WRITE Write to XMS failed cstrJMSG COPYRIGHT cstrJCOPYRIGHT cstrJMSG VERSION cstrJVERSION cstrJTRC 16BIT TABLES Caution quantization tables are too coarse for baseline JPEG cstrJTRC ADOBE Adobe APP14 marker version d flags 0x 04x 0x 04x transform d cstrJTRC APP0 Unknown APP0 marker not JFIF length u cstrJTRC APP14 Unknown APP14 marker not Adobe length u cstrJTRC DAC Define Arithmetic Table 0x 02x 0x 02x cstrJTRC DHT Define Huffman Table 0x 02x cstrJTRC DQT Define Quantization Table d precision d cstrJTRC DRI Define Restart Interval u cstrJTRC EMS CLOSE Freed EMS handle u cstrJTRC EMS OPEN Obtained EMS handle u cstrJTRC EOI End Of Image cstrJTRC HUFFBITS 3d 3d 3d 3d 3d 3d 3d 3d cstrJTRC JFIF JFIF APP0 marker density dx d d cstrJTRC JFIF BADTHUMBNAILSIZE Warning thumbnail image size does not match data length u cstrJTRC JFIF MINOR Unknown JFIF minor revision number d 02d cstrJTRC JFIF THUMBNAIL with d x d thumbnail image cstrJTRC MISC MARKER Skipping marker 0x 02x length u cstrJTRC PARMLESS MARKER Unexpected marker 0x

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/1999/1230.txt (2016-02-14)
    Open archived version from archive



  •