Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.visual-basic > #18796

Re: Curiosità su file BMP e PDF

From Franz_aRTiglio <franzgol@N0SPAMtin.it>
Newsgroups it.comp.lang.visual-basic
Subject Re: Curiosità su file BMP e PDF
Date 2016-04-28 16:55 +0200
Organization Aioe.org NNTP Server
Message-ID <nft83o$1os3$1@gioia.aioe.org> (permalink)
References <nfqneg$1hj0$1@gioia.aioe.org> <nfqog3$1mes$1@gioia.aioe.org> <nfsvep$19bo$1@gioia.aioe.org> <nft7om$1o9r$1@gioia.aioe.org>

Show all headers | View raw


Franz_aRTiglio ha usato la sua tastiera per scrivere :

visto or ora (m'era sfuggito):

offset 14 "profondità di colore dell'immagine in bit per pixel, 
dev'essere uno dei seguenti valori: 1, 4, 8, 16, 24 o 32. In caso di 1, 
4 o 8 bit per pixel i colori sono indicizzati. I valori 16 e 32 sono 
poco comuni. Nella versione 5 del formato si può usare il valore 0 
quando viene incapsulata un'immagine JPEG o PNG."


  If bfType = "BM" Then

    ' BITMAPINFOHEADER
    Get #fb, , biSize
    Get #fb, , biWidth
    Get #fb, , biHeight
    Get #fb, , biPlanes
    Get #fb, , biBitCount
    Get #fb, , biCompression
    Get #fb, , biSizeImage
    Get #fb, , biXPelsPerMeter
    Get #fb, , biYPelsPerMeter
    Get #fb, , biClrUsed
    Get #fb, , biClrImportant


    BPP = biBitCount

    If BPP <= 8 Then

scommetto che nell'immagine "incriminata" biBitCount ( e quindi BPP )
risulta zero, il modulo da te postato dà per scontato che se e' 
inferiore o uguale a 8, BPP e' per forza 1 o 4 e si regola di 
conseguenza, senza considerare che può essere una palette di tipo jpg o 
png, non mi stupirei di scorire che poi scazza quando conta con
 biClrUsed e biClrImportant.

Back to it.comp.lang.visual-basic | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Curiosità su file BMP e PDF "Sauro" <vicchi@crsscala.it> - 2016-04-27 17:55 +0200
  Re: Curiosità su file BMP e PDF Franz_aRTiglio <franzgol@N0SPAMtin.it> - 2016-04-27 18:16 +0200
    Re: Curiosità su file BMP e PDF "Sauro" <vicchi@crsscala.it> - 2016-04-28 14:24 +0200
      Re: Curiosità su file BMP e PDF Franz_aRTiglio <franzgol@N0SPAMtin.it> - 2016-04-28 16:49 +0200
        Re: Curiosità su file BMP e PDF Franz_aRTiglio <franzgol@N0SPAMtin.it> - 2016-04-28 16:55 +0200
          Re: Curiosità su file BMP e PDF "Sauro" <vicchi@crsscala.it> - 2016-05-01 09:38 +0200
            Re: Curiosità su file BMP e PDF Franz_aRTiglio <franzgol@N0SPAMtin.it> - 2016-05-01 10:06 +0200
              Re: Curiosità su file BMP e PDF "Sauro" <vicchi@crsscala.it> - 2016-05-01 20:46 +0200

csiph-web